[Nagiosplug-devel] [ nagiosplug-Bugs-1091210 ] String match in check_ping for Solaris 10

SourceForge.net noreply at sourceforge.net
Sat Dec 25 14:30:02 CET 2004


Bugs item #1091210, was opened at 2004-12-25 13:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1091210&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marcos Della (mdella)
Assigned to: Nobody/Anonymous (nobody)
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



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

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




More information about the Devel mailing list