Hi, just found this site - hope I can get some help.
I’m kind of new to nagios and have got up an running. I recently installed NSclient++ on my test Win2008 Server R2. I’ve got the service up and running - as far as I can tell have the NSC.ini file configured.
port=12489 – Uncommented
password=secret-password – Uncommented
password=####### – Password matched on my commands.cfg on the nagios server
But when I run a “check_nt” command, I get an error about password being invalid.
/usr/local/nagios/libexec/check_nrpe -H 'host ip' -c CheckCPU -a warn=80 crit=90 time=20m time=10s time=4
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages
From nsclient.log
2011-05-05 10:43:51: error:modules\NRPEListener\NRPEListener.cpp:393: Request contained arguments (not currently allowed, check the allow_arguments option).
2011-05-05 10:43:51: error:modules\NRPEListener\NRPEListener.cpp:365: NRPEException: Request contained arguments (not currently allowed, check the allow_arguments option).
Where would I configure this on the INI file to set to ‘allow’?
Yes, I’ve put the password in the nsc.ini file. Here’s the settings.
[Settings]
;# OBFUSCATED PASSWORD
; This is the same as the password option but here you can store the password in an obfuscated manner.
; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the
; password. Its just a bit harder to do it at first glance.
;obfuscated_password=Jw0KAUUdXlAAUwASDAAB
;
;# PASSWORD
; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
password=secret-password
;
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# 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.
use_file=1
allowed_hosts=64.54.145.180
password=nagpasswd
;
; # USE SHARED MEMORY CHANNELS
; This is the "new" way for using the system tray based on an IPC framework on top shared memmory channels and events.
; It is brand new and (probably has bugs) so dont enable this unless for testing!
; If set to 1 shared channels will be created and system tray icons created and such and such...
;shared_session=0
During the install of NSClient++, it asked for a password to use. So, I typed in ‘nagpasswd’. I assumed that it was using that password and I added it on the commands.cfg.
Here’s a question, Why can’t I change the password from secret-password to nagpasswd? I mean I did on the nsc.ini file. I then re-started the nsclient++ service, manually ran the command and got the invalid password. But, tried it with the secret-password and it still took. Why?