Page 1 of 1

NSCLIENT++ Invalid Password.

Posted: Sun Feb 01, 2015 9:47 pm
by darkservices
Hi All

Hope you can help. pulling my hair out again with yet another simple problem

check_nt returning invalid password no matter what I do.

root@localhost libexec]# ./check_nt -H 192.168.0.2 -s "87654321" -p 12489 -v SERVICESTATE -l spooler -d SHOWALL
NSClient - ERROR: Invalid password.

NSC.ini file is attached to this post. the passwords are identical.

Feels like NSclient is buggy?.

Im assuming that the password is simply checked at the client end, and hence its nsclient which is at fault?

Help please

Re: NSCLIENT++ Invalid Password.

Posted: Sun Feb 01, 2015 10:15 pm
by Box293
I just copied your nsc.ini file and pasted it into my existing ini file (replaced all the contents), restarted the NSClient++ service and tried your example command, all worked OK.

I needed to change the allowed_hosts address but apart from that all is identical.

This was using 0.3.9.

My version of check_nt:

Code: Select all

./check_nt -V
check_nt v2.0.3 (nagios-plugins 2.0.3)
Is the IP address 192.168.0.2 actually the IP Address of the server where this nsc.ini file resides?
Have you tried restarting the NSClient++ Service?

Re: NSCLIENT++ Invalid Password.

Posted: Mon Feb 02, 2015 10:29 am
by lmiltchev
Is the IP address 192.168.0.2 actually the IP Address of the server where this nsc.ini file resides?
Have you tried restarting the NSClient++ Service?
In addition to this, can you verify that you Nagios XI server's IP is 192.168.0.4?

Code: Select all

ifconfig