I had tried to test nagios for the first time. But I got an error as showed below.
 Warning: Return code of 127 for check of service ‘PING’ on host ‘localhost’ was out of bounds. Make sure the plugin you’re trying to run actually exists.
I had checked the document it is about plugins. I tried to execute the command as nagios in terminal and checked resource.cfg (at first I think it is about the path problem).
[nagios@localhost var]$ /usr/local/nagios/libexec/check_ping -H localhost -w 200,20%
-c 300,30% -p 5 localhost
PING OK - Packet loss = 0%, RTA = 0.09 ms
I have no ideas what is the problem. Somebody please give me some direction to solve this problem. Thanks!