The check_ping Nagios plugin does not ping hostnames, only IP addresses.<div><br></div><div>-Travis<br><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 11:54 PM, Cosmin Neagu <span dir="ltr"><<a href="mailto:cosmin.neagu@omnilogic.ro" target="_blank">cosmin.neagu@omnilogic.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi nagios users,<br>
<br>
Starting from yesterday, check_ping is behaving strange for a single host.<br>
When giving -H parameter as <a href="http://www.google.ro" target="_blank">www.google.ro</a> it gives CRITICAL - Network<br>
Unreachable<br>
But when giving -H parameter as IP address it is working. I have checked<br>
and there are no DNS issues<br>
<br>
<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H <a href="tel:173.194.35.159" value="+17319435159">173.194.35.159</a> -w<br>
3000.0,80% -c 5000.0,100%<br>
PING OK - Packet loss = 0%, RTA = 46.97<br>
ms|rta=46.971001ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H <a href="http://www.google.ro" target="_blank">www.google.ro</a> -w<br>
3000.0,80% -c 5000.0,100%<br>
CRITICAL - Network Unreachable (<a href="http://www.google.ro" target="_blank">www.google.ro</a>)<br>
nagios@mon2:/usr/local/nagios/libexec$ ping <a href="http://www.google.ro" target="_blank">www.google.ro</a><br>
PING <a href="http://www-cctld.l.google.com" target="_blank">www-cctld.l.google.com</a> <a href="tel:%28173.194.35.159" value="+17319435159">(173.194.35.159</a>) 56(84) bytes of data.<br>
64 bytes from <a href="http://muc03s01-in-f31.1e100.net" target="_blank">muc03s01-in-f31.1e100.net</a> <a href="tel:%28173.194.35.159" value="+17319435159">(173.194.35.159</a>): icmp_seq=1<br>
ttl=54 time=46.8 ms<br>
64 bytes from <a href="http://muc03s01-in-f31.1e100.net" target="_blank">muc03s01-in-f31.1e100.net</a> <a href="tel:%28173.194.35.159" value="+17319435159">(173.194.35.159</a>): icmp_seq=2<br>
ttl=54 time=46.8 ms<br>
<br>
<br>
Using nagios 3.2.3<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -h<br>
check_ping v1.4.15 (nagios-plugins 1.4.15)<br>
Copyright (c) 1999 Ethan Galstad <<a href="mailto:nagios@nagios.org">nagios@nagios.org</a>><br>
<br>
<br>
After a little more search<br>
Other sites works ok when used with check_ping, but not site containing<br>
goole is working<br>
<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H <a href="http://www.google.de" target="_blank">www.google.de</a> -w<br>
3000.0,80% -c 5000.0,100%<br>
CRITICAL - Network Unreachable (<a href="http://www.google.de" target="_blank">www.google.de</a>)<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H <a href="http://www.google.com" target="_blank">www.google.com</a> -w<br>
3000.0,80% -c 5000.0,100%<br>
CRITICAL - Network Unreachable (<a href="http://www.google.com" target="_blank">www.google.com</a>)<br>
nagios@mon2:/usr/local/nagios/libexec$ ./check_ping -H <a href="http://www.google.it" target="_blank">www.google.it</a> -w<br>
3000.0,80% -c 5000.0,100%<br>
CRITICAL - Network Unreachable (<a href="http://www.google.it" target="_blank">www.google.it</a>)<br>
<br>
Any idea why?<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Cosmin Neagu<br>
NOC Team Leader<br>
Str. I. G. Duca nr. 36<br>
Otopeni, Judetul Ilfov, 075100 Romania<br>
<a href="http://www.omnilogic.ro" target="_blank">www.omnilogic.ro</a><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br></div>