Posts

Showing posts with the label script

Nagios Ping Problem

I'm using Nagios3 in my Debian 6 box for monitoring my network. My system pings www.google.com periodically to check whether the Internet connection is okay or not. The weird thing happened is that, when Nagios checks whether www.google.com is reachable or not, it says "Network not found". However, I can ping www.google.com manually. root@dragonfly:~# /usr/lib/nagios/plugins/check_ping -H www.google.com -c 100,90% -w 100,90% CRITICAL - Network Unreachable (www.google.com) root@dragonfly:~# ping www.google.com PING www.l.google.com (74.125.236.208) 56(84) bytes of data. 64 bytes from maa03s17-in-f16.1e100.net (74.125.236.208): icmp_req=1 ttl=53 time=210 ms 64 bytes from maa03s17-in-f16.1e100.net (74.125.236.208): icmp_req=2 ttl=53 time=229 ms ^C --- www.l.google.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 210.611/219.867/229.124/9.268 ms After a bit of googling, here's what I found. 8-Jun w...