NSCLIENT++ Invalid Password.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
darkservices
Posts: 6
Joined: Thu Jan 29, 2015 11:45 am

NSCLIENT++ Invalid Password.

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSCLIENT++ Invalid Password.

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NSCLIENT++ Invalid Password.

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked