Page 1 of 1

NSClient invalid password

Posted: Mon Jan 25, 2010 3:29 pm
by bbell
I am getting "NSClient - ERROR: Invalid password" from all of my Windows hosts. Ping monitoring is successful. When I run check_nt manually from the command line I get a good response.

[root@nagiosxi ~]# /usr/local/nagios/libexec/check_nt -H 10.1.0.36 -s "password" -p 12489 -v UPTIME
System Uptime - 174 day(s) 0 hour(s) 9 minute(s)

I have verified the the password is set to 'password' for the $ARG1$ field in xiwizard_windowsserver_nsclient_service

Here is my check_xi_service_nsclient
$USER1$/check_nt -H $HOSTADDRESS$ -s $ARG1$ -p 12489 -v $ARG2$ $ARG3$ $ARG4$

Please let me know what I need to change/check to get this working.

Re: NSClient invalid password

Posted: Tue Jan 26, 2010 8:38 pm
by egalstad
Try re-running the config wizard on one of your windows hosts and re-enter your password in the appropriate place. If it still fails, try clicking on the "Configure" tab when you're on the service detail page. The check command that's being used to monitor the service should be visible and you can see if you spot any problems.

Re: NSClient invalid password

Posted: Thu Jan 28, 2010 6:28 pm
by slamck
Check the /usr/loca/nagios/etc/resource.cfg file. The password for NSClient++ is stored inside.

Re: NSClient invalid password

Posted: Mon Feb 01, 2010 11:01 pm
by egalstad
The password won't be stored in the resource.cfg file if you're using the configuration wizards - they store the password in the service check command.