Nagios bizare ping behaviour

Same thing happened to us last night starting at about 20:01 EDT, and the alert is still not functioning properly. I hadn't tried running the check_ping with one of Google's IP addresses until I read your post though, and it worked here just as it did for you. ping www.google.com returns successful pings, and I can browse to www.google.com from my nagios server as well, but the check_ping monitor is still critical.

-- fixed-for-me --

I found that the ping6 www.google.com command failed immediately with a network unreachable error, while a ping www.google.com succeeded. I ran the check_ping command as before with www.google.com adding a -4 flag at the end to force it to use IPV4, and the check_ping now succeeds.

/usr/lib/nagios/plugins/check_ping -H www.google.com -w 100.0,20% -c 200.0,40% -4
PING OK - Packet loss = 0%, RTA = 22.51 ms

So I edited the commands.cfg file to add a -4 to the end of the command, and voila, a successful check.


Glad you're participating in the IPv6 day and the IPv6 launch of the "most important internet sites". You are probably pinging a v6 site address when using the name without having v6 connectivity at your Nagios server. The good news is that it is over by midnight :)