Problem with nagios check_ping plugin

Marc Powell marc at ena.com
Fri Oct 5 17:38:56 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Alex Dehaini
> Sent: Friday, October 05, 2007 10:21 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem with nagios check_ping plugin
> 


> The problem is nagios will warn me of 28% packet loss to this host
that is
> 3 hops away from the monitoring system and the RTA will be about 60ms.
It
> does this randomly. I will like to know how nagios computes this info
and
> how it determines this.

check_ping is a wrapper to /bin/ping. It simply calls your system ping
and evaluates the rta and packet loss reported by that against your
warning and critical values. I'd say the packet loss reported is coming
from your system ping program unless it were happening 100% of the time
implying a parsing problem.

$ ./check_ping  -v -v -v -H 127.0.0.1 -w 100,10% -c 200,20%
CMD: /bin/ping -n -U -w 10 -c 5 127.0.0.1
Output: PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
Output: 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.049 ms
Output: 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.066 ms
Output: 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.043 ms
Output: 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.034 ms
Output: 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.072 ms
Output: 
Output: --- 127.0.0.1 ping statistics ---
Output: 5 packets transmitted, 5 received, 0% packet loss, time 4015ms
Output: rtt min/avg/max/mdev = 0.034/0.052/0.072/0.016 ms, pipe 2
PING OK - Packet loss = 0%, RTA = 0.05 ms
100.000000:10% 200.000000:20%

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list