# /usr/local/nagios/libexec/check_ping -vvv -H <a href="http://nagios.org">nagios.org</a> -w 300,10% -c 1000,50% -p 5 -t 60<br>CMD: /bin/ping -n -U -w 60 -c 5 <a href="http://nagios.org">nagios.org</a><br>Output: PING <a href="http://nagios.org">nagios.org</a> (<a href="http://66.118.156.22">66.118.156.22</a>) 56(84) bytes of data.<br>
Output: 64 bytes from <a href="http://66.118.156.22">66.118.156.22</a>: icmp_seq=1 ttl=45 time=435 ms<br>Output: 64 bytes from <a href="http://66.118.156.22">66.118.156.22</a>: icmp_seq=2 ttl=45 time=395 ms<br>Output: 64 bytes from <a href="http://66.118.156.22">66.118.156.22</a>: icmp_seq=3 ttl=45 time=345 ms<br>
Output: 64 bytes from <a href="http://66.118.156.22">66.118.156.22</a>: icmp_seq=4 ttl=45 time=435 ms<br>Output: 64 bytes from <a href="http://66.118.156.22">66.118.156.22</a>: icmp_seq=5 ttl=45 time=435 ms<br>Output:<br>
Output: --- <a href="http://nagios.org">nagios.org</a> ping statistics ---<br>Output: 5 packets transmitted, 5 received, 0% packet loss, time 4000ms<br>Output: rtt min/avg/max/mdev = 345.846/409.540/435.725/35.383 ms<br>PING WARNING - Packet loss = 0%, RTA = 409.54 ms|rta=409.540009ms;300.000000;1000.000000;0.000000 pl=0%;10;50;0<br>
300.000000:10% 1000.000000:50%<br><br><br>Yes... That's better, but why is it that I don't have the problem with a system ping to a domain name?<br>dig <a href="http://nagios.org">nagios.org</a> returns -> Query time: 3 msec<br>
<br><br><br><div class="gmail_quote">On Fri, Jun 20, 2008 at 11:00 PM, Holger Weiss <<a href="mailto:holger@cis.fu-berlin.de">holger@cis.fu-berlin.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* Eddie F <<a href="mailto:bigedd@gmail.com">bigedd@gmail.com</a>> [2008-06-20 22:53]:<br>
<div class="Ih2E3d">> Here it is with  "-vvv" ...<br>
><br>
> # /usr/local/nagios/libexec/check_ping -vvv -H <a href="http://nagios.org" target="_blank">nagios.org</a> -w 300,10% -c 1000,50% -p 5<br>
> CMD: /bin/ping -n -U -w 10 -c 5 <a href="http://nagios.org" target="_blank">nagios.org</a><br>
> Output: PING <a href="http://nagios.org" target="_blank">nagios.org</a> (<a href="http://66.118.156.22" target="_blank">66.118.156.22</a>) 56(84) bytes of data.<br>
> Output: 64 bytes from <a href="http://66.118.156.22" target="_blank">66.118.156.22</a>: icmp_seq=1 ttl=45 time=368 ms<br>
> CRITICAL - Plugin timed out after 10 seconds<br>
<br>
</div>So it seems to work, apart from the fact that it runs into the timeout.<br>
Maybe ping(1)'s DNS resolution is very slow on your system for some<br>
reason?  Does it work if you increase the plugin timeout by using e.g.<br>
"check_ping -t 60 ..."?<br>
<div><div></div><div class="Wj3C7c"><br>
Holger<br>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
_______________________________________________________<br>
Nagios Plugin Development Mailing List <a href="mailto:Nagiosplug-devel@lists.sourceforge.net">Nagiosplug-devel@lists.sourceforge.net</a><br>
Unsubscribe at <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br>