I did some troubleshooting and found the following.<br><br>-t option controls the actual -w option for /bin/ping<br><br>if you add -t option in check_ping plugin then it add the -w option in /bin/ping command.  If we don't put -t option then it automatically adds -w option with default 10 value<br>
<br><br>so if we do '/bin/ping -n -U -w 10 -c 1 host A' the following is the output<br><br><br>PING host A (x.x.x.x) 56(84) bytes of data.<br>64 bytes from <a href="http://128.59.60.22">128.59.60.22</a>: icmp_seq=4 ttl=59 time=2.95 ms<br>
<br>--- <a href="http://unixrack5-ups1.cc.columbia.edu">unixrack5-ups1.cc.columbia.edu</a> ping statistics ---<br>4 packets transmitted, 1 received, 75% packet loss, time 3002ms<br>rtt min/avg/max/mdev = 2.952/2.952/2.952/0.000 ms<br>
<br><br>however if you do '/bin/ping -n -U -c 1 host A' we get the following output<br><br>PING host A (x.x.x.x) 56(84) bytes of data.<br><br>--- <a href="http://unixrack5-ups1.cc.columbia.edu">unixrack5-ups1.cc.columbia.edu</a> ping statistics ---<br>
1 packets transmitted, 0 received, 100% packet loss, time 0ms<br><br><br><br>Would it be possible not to add the -w option by default.  Please advise on this.  Thanks<br><br><br>P. S -  I am running rhel  5 with kernel version 2.6.18-128.2.1.el5<br>
<br><br><br><br><br><br><div class="gmail_quote">On Wed, Aug 19, 2009 at 11:57 AM, shadih rahman <span dir="ltr"><<a href="mailto:shadhin71@gmail.com">shadhin71@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br>    I have noticed that check_ping plugin is not processing the -p option properly.<br><br>I have the following command definition<br><br>define command{<br>        command_name    check-host-alive<br>        command_line    $USER1$/check_ping -H $HOSTADDRESS$ t 45 -4 -w 3000.0,100% -c 3000.0,100% -p 1<br>

        }<br><br><br>./check_ping -H Hos A -p 1 -t 45 -4 -w 2000.0,30% -c 3000.0,40%<br>PING CRITICAL - Packet loss = 50%, RTA = 2.50 ms|rta=2.498000ms;2000.000000;3000.000000;0.000000 pl=50%;30;40;0<br><br><br><br><br>If I am sending 1 packet, how is it possible to receive 50% packet loss.  Please advise on this.  Thanks<br>
<font color="#888888">
<br><br><br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>