[mrtg] ping
darkstar
security at darkstar.nom.za
Wed Oct 9 09:37:15 MEST 2002
I have the following script to get output from a ping, and yes I have
heard of ping_probe
#!/bin/sh
ping -c2 -w 1 $1 2> /dev/null >/dev/null
if [ $? != 0 ]; then
echo "500"
else
echo "0"
fi
echo "500"
This is my cfg...
Target[datapro_ping]: `/usr/local/mrtg-2/bin/cfg/datapro_ping.sh "IP"`
MaxBytes[datapro_ping]: 1000
Title[datapro_ping]: DataPro Ping's
kilo[datapro_ping]: 1024
PageTop[datapro_ping]: <h1> Ping for DataPro Connection </h1>
YLegend[datapro_ping]: Comms Link Up
XSize[datapro_ping]: 500
YSize[datapro_ping]: 200
datapro_ping.log file...
1034148308 500 500
1034148308 0 0 0 0
1034148008 0 0 0 0
1034148000 0 0 0 0
1034147700 0 0 0 0
1034147400 0 0 2 2
1034147100 0 0 0 0
The problem is that the graph shows nothing on it, can somebody perhaps
point me in the right direction.
Thanks
--
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