[Nagiosplug-help] Question about NSClient and setting/using the password
treimers at ashevillenc.gov
Fri Apr 25 22:41:49 CEST 2008
I've configured NSClient on a Windows server and I'm running Nagios on a
Getting the following error:
NSClient - ERROR: Invalid password.
Pings are OK, so I know the host is reachable.
Other checks are OK too -
But something is boogered in NSClient or in check_nt ---- I think.
Here's some detail for those who want to know that I've tried to fix
this, and those who want to know if I've read
every page on the Internet before asking questions. (I did hunt around
for NSClient-for-idiots documentation)
The Nagios side of things:
A server file of:
It's just a copy of /usr/local/nagios/etc/objects/windows-server.cfg
I'd modified the localhost in there to be the IP address of my server.
# 'check_nt' command definition
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v
$ARG1$ $ARG2$ -s <mypassword>
The NSClient side of things:
The lines I've configured in NSC.ini
(anything not mentioned is at defaults)
password=<my password here>
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the
use_reg in the registry is set to 1
; the registry will be used instead.
;# BIND TO ADDRESS
; Allows you to bind server to a specific local address. This has to be
a dotted ip adress not a hostname.
; Leaving this blank will bind to all avalible IP adresses.
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are
allowed to talk to NRPE deamon.
; If you leave this blank the global version will be used instead.
;# CHECK ALL SERVICES
; Configure how to check services when a CheckAll is performed.
; ...=started means services in that class *has* to be running.
; ...=stopped means services in that class has to be stopped.
; ...=ignored means services in this class will be ignored.
Systems Analyst II
Information Technology Services
City of Asheville
phone - 828-259-5512
treimers at ashevillenc.gov <mailto:timreimers at ashevillenc.gov>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Help