NRPE Test
Posted: Thu Apr 11, 2013 9:05 am
I'm just playing around with NRPE, I downloaded a powershell script to check for windows updates
http://exchange.nagios.org/directory/Pl ... ll/details
Then followed this document
http://library.nagios.com/library/produ ... -nagios-xi
except that I didn't have in the nsclient.ini there wasn't a [/settings/external scripts/scripts] section. So I usedthe nsclient-full.ini
All was going ok, I could run the script locally on the windows powershell command line
but when I tried to run the script from nagios cli I got "No handler for command: check_updates"
I looked in the NRPE document
http://library.nagios.com/library/produ ... -solutions
Any ideas where I have gone wrong?
http://exchange.nagios.org/directory/Pl ... ll/details
Then followed this document
http://library.nagios.com/library/produ ... -nagios-xi
except that I didn't have in the nsclient.ini there wasn't a [/settings/external scripts/scripts] section. So I usedthe nsclient-full.ini
All was going ok, I could run the script locally on the windows powershell command line
but when I tried to run the script from nagios cli I got "No handler for command: check_updates"
I looked in the NRPE document
http://library.nagios.com/library/produ ... -solutions
The above isnt mentioned in the windows document.XIV. UNKNOWN: No handler for that command
This is usually caused by a missing or incorrectly spelled handler (external alias) in the remote host's nsclient.ini/nsc.ini. Check the
spelling of the check_nrpe command for the service check in XI (the name of the command after the ā-cā). It should match the spelling
of the external alias in the nsclient config. For example:
[External Alias]
alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
...[truncated]...
In the example above, the bolded
Any ideas where I have gone wrong?