I’m using Nagios 3.2.1 with NRPE 2.12.
I’m trying to monitor some services on a remote host, and I got 3 of the default ones working (Current users, root partition, current processes), but PING still isn’t working. I’m pretty sure it’s just a bad argument somewhere, but I can’t seem to find it. Note that the other commands ARE working, so it’s not a general command line argument thing, it’s just specific to PING.
First off, when I run ping from the server via the command line, it works:
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -c check_ping -a X.X.X.X 3000.0,80% 5000.0,100% 5
PING OK - Packet loss = 0%, RTA = 0.01 ms|rta=0.014000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
On my server, the PING service definition looks like this:
use generic-service ; Name of service template to use
My check_npre command looks like this:
# 'check_nrpe' command definition
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$
Finally, on the client, the check_ping command looks like this:
command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
So, as you can see, the service should be passing check_ping, 100.0,20% and 500.0,60% to the command, the command should be passing all those, along with the host address to the client, and the client should be handling all those correctly.
Can anyone tell me if I’m doing something wrong here, or if there’s something I’m not understanding?