NSClient++ Help (#1) - nrpe & nagios (#718) - Message List
Hi All
Hope I'm asking this in the right place...
I've recently setup nagios with the nrpe plugin and am using NSClient++ to monitor some windows servers, I "think" everything is setup correctly but when I try to use the command check_nrpe!checkCPU ... I get an error in nagios (Return code of 127 is out of bounds - plugin may be missing).
I am able to run the command line without issue:
/usr/local/nagios/libexec$ ./check_nrpe -H 172.x.x.x -c CheckCPU -a warn=80 crit=90 time=20m time=10s time=4 OK CPU Load ok.|'20m'=0%;80;90; '10s'=0%;80;90; '4'=0%;80;90;
I suspect it may be the data that is returned by the check "OK" and nagios might be looking for something else.
My nagios configuration is set:
# 'check_nrpe' command definition
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARGS1$
}
define command{
command_name checkCPU
command_line check_nrpe -H $HOSTNAME$ -p 5666 -c checkCPU -a warn=80 crit=90 time=20m time=10s time=4
}
and then the service is just calling the checkCPU without any args.
Am I missing something in the config?
Thanx for the help... Garry
-
Message #2024
Humm...
The first example with check_nrpe has the script prefixed with $USER1$. So if USER1 is setup to point to /usr/local/nagios/libexec you probably want that for the second one as well.
If not then you probably wanna prefix check_nrpe with /usr/local/nagios/libexec or somesuch.
Though from a nsclient++ perspective if ./check_nrpe ... is working on the command line it is setup correctly. And you can google for "how to use check_nrpe" with nagios which will probably bring you up some nifty guides.
I have a guide on how to getting things up and running with nrpe but you are almost all done but at the end I try to quickly explain how to configure nagios (but pretty briefly) doc/usage/nagios/nrpe
Michael Medin
mickem01/06/11 18:47:15 (2 years ago)








