[Nagiosplug-devel] [ nagiosplug-Patches-1091043 ] String match in check_ping for Solaris 10

SourceForge.net noreply at sourceforge.net
Tue Dec 28 14:37:03 CET 2004


Patches item #1091043, was opened at 2004-12-25 09:59
Message generated for change (Comment added) made by opensides
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1091043&group_id=29880

Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Marcos Della (mdella)
Assigned to: Benoit Mortier (opensides)
Summary: String match in check_ping for Solaris 10

Initial Comment:
When using the check_ping command for Solaris 10, the
output of the ping command has changed.  There are no
matches for this new string in the "run_ping()" command.

You need to add the following to get the round trip
average from the new ping command...

sscanf(buf,"round-trip (ms)  min/avg/max/stddev =
%*f/%f/%*f/%*f",&rta)==1 ||

Note that there are TWO spaces after the "(ms)".

Output from ping is as follows:

/usr/sbin/ping -n -s 192.168.124.1 56 5
PING 192.168.124.1 (192.168.124.1): 56 data bytes
64 bytes from 192.168.124.1: icmp_seq=0. time=1.56 ms
64 bytes from 192.168.124.1: icmp_seq=1. time=1.25 ms
64 bytes from 192.168.124.1: icmp_seq=2. time=1.32 ms
64 bytes from 192.168.124.1: icmp_seq=3. time=1.50 ms
64 bytes from 192.168.124.1: icmp_seq=4. time=2.15 ms

----192.168.124.1 PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
round-trip (ms)  min/avg/max/stddev = 1.25/1.56/2.15/0.35



----------------------------------------------------------------------

>Comment By: Benoit Mortier (opensides)
Date: 2004-12-28 23:36

Message:
Logged In: YES 
user_id=388184

Hi, 
 
patche applied should be in cvs in a couple of hours. 
 
Please test it 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1091043&group_id=29880




More information about the Devel mailing list