check_ping returns PING OK even when host is down


I have multiple servers and I want to see if they can hit a few different websites, such as google. I created a new command:
define command{
command_name check_ping_site
command_line $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5
Which is called from my services with the line:
check_command check_ping_site!!100.0,20%!500.0,60%

The issue is when I have all my servers run this service, they respond with similar values, but I believe the server is not pinging but rather the host of my nagios is. Such as when I take server XYZ down, all the services stop working, except for the check_ping_site check, which it says is fine and pinging correctly.

I’m not for sure what I am doing wrong.
Any help would be great, thanks.


check ping is a LOCAL plugin.
if you want you remote server to run a ping you need cehck_by_ssh, NRPE or NSCA or whatever method to have the remote host execute the test.


Ah! Thank you so much. I’ve spent quite some time looking for this.