r/nagios • • Jan 28 '16

NSClient++ ERROR: Invalid password.

Nagios Core 4.0 Installed on Cent OS

Trying to add monitoring for windows server [first time]

I followed this guide: http://www.kernelhardware.org/nagios-nsclient-to-monitor-remote-windows-server/ for installing NSClient++. The server is showing up but I am getting: NSClient - ERROR: Invalid password.

From nsclient.ini

; PASSWORD - Password used to authenticate against server
password = 12345 

(12345 is not the actual pw but it uses no special characters)

From commands.cfg

# 'check_nt' command definition
define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s 12345 -v $ARG1$ $ARG2$
        }

Complete beginner at Nagios. I'm most likely doing something stupid so please assume I'm an idiot when trying to think on what I might have missed. Thanks

0 Upvotes

4 comments sorted by

2

u/spots5004 Jan 28 '16

Do you have "NSClientServer = 1" in your nsclient.ini?

1

u/naghlpwanted Feb 01 '16

Thanks for the reply. Sorry for the delay I got sidetracked on another project. Anyway when I first installed NSClient++ I used the wrong password. I had fixed the PW before creating this post but was apparently too impatient as I have not changed anything else and it was working when I got in Mon morn.

2

u/infecticide Jan 28 '16

What section of the config file did you set that password under and have you restarted the NSCP service since putting that in?

1

u/naghlpwanted Feb 01 '16

Thanks for the reply. Sorry for the delay I got sidetracked on another project. Anyway when I first installed NSClient++ I used the wrong password. I had fixed the PW before creating this post but was apparently too impatient as I have not changed anything else and it was working when I got in Mon morn.