[mrtg] Ping an NT workstation
bonnaud olivier
obonnaud at evc.net
Mon Dec 15 10:33:28 MET 2003
I try to trace the ping response time for a NT workstation that is not
using SNMP.
Here are the script :
Target[uic_ping]: `d:\perl\bin\perl d:\mrtg\dev\pinguic.pl`
MaxBytes[uic_ping]: 100000000
Title[uic_ping]: Ping UIC
PageTop[uic_ping]: <H1>Ping UIC</H1>
Ysize[uic_ping]: 200
Ytics[uic_ping]: 10
YLegend[uic_ping]: Ping
LegendI[uic_ping]: Ping
Options[uic_ping]: bits,unknaszero
and the perl script pinguic.pl
$node = $ARGV[0];
$res = `ping x.y.z.w -n 1`;
@number1 = split(/ /,$res);
$total = $number1[10];
$total =~ s/time//ig;
$total =~ s/<//ig;
$total =~ s/=//ig;
$total =~ s/ms//ig;
print "$total\n";
If i check the result of the file
1039944612 10 -1
1039944612 0 0 0 0
1039944582 0 0 0 0
1039944300 0 0 0 0
1039944000 0 0 0 0
1039943700 0 0 0 0
1039943400 0 0 0 0
1039943100 0 0 0 0
1039942800 0 0 0 0
1039942500 0 0 0 0
only the first line is updated. so i don't have the last result.
any idea ?
thanks for your help
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list