[rrd-users] FW: Need Ping Utility / Oracle Question

Schroeder, Dennis Dennis.Schroeder at sanmina.com
Tue Sep 11 00:10:19 MEST 2001

Yes, this does work!  Thanks!

Dennis Schroeder                                ||        ||
Network Engineer                                ||        ||
SANMINA Global Network Services                ||||      ||||
Phone:  602-824-8431                       ..:||||||:..:||||||:..
Mobile: 602-432-3258                          Cisco  Certified
Email:  dennis.schroeder at sanmina.com         Network  Associate
           One person with a belief is a social power
              equal to 99 who have only interests.

-----Original Message-----
From: Mike Wright [mailto:Mike at auckland-services.freeserve.co.uk]
Sent: Monday, September 10, 2001 2:50 PM
To: Schroeder, Dennis
Subject: RE: [rrd-users] Need Ping Utility / Oracle Question

At 17:31 10/09/01 -0400, you wrote:
>       I was hoping that someone knew of a replacement for the DOS/Windoze
>ping.exe command that was more configurable. 

I can't think of any other ping utility and I don't think fping works on

But it is really quite easy to make perl parse the output of a ping
command. This little script will ping a machine and log the response time. 


$ip = "";

# Start the ping command to send a single ping
open (PING,"ping -n 1 $ip |") or die "Can't ping : $!";

# Read the output from the command
while(<PING>) {

 # Look for a line like:
 # Reply from bytes=32 time=151ms TTL=244

  next unless /time=(\d+)ms/i;
  # The time is now in the $1 variable so use it to update the rrd
  `rrdtool update $ip.rrd N:$1`;

  # exit the loop

Good luck with it!


Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list