I inherited a nagios install so I’m new to it but have found it to be pretty straightforward to setup and get working. I’m attempting to move to a new server with the latest greatest version of nagios on it (running on RedHat Linux). I have absolutely everything working EXCEPT check_ping - the interface shows UNKNOWN status regardless of what I do (Status Information has: check_ping: %s: Warning threshold must be integer or percentage! ). However when I do a “ps” and capture the command that is running and run it by hand from the command line, it runs fine and returns “PING OK”. Here is the command and result (ip masked):
/usr/local/nagios/libexec/check_ping -H MY_IP_ADDR -w 3000.0,80% -c 5000.0,100% -p 5
PING OK - Packet loss = 0%, RTA = 0.60 ms|rta=0.601000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
The command looks just fine in the config files but every single check_ping against every single server I’m monitoring shows UNKNOWN.
I’m at my wits end on this. Please provide some direction.