[mrtg] mrtg-ping-probe question
Bill Whitacre
bw at his.com
Thu Jul 21 22:33:38 MEST 2005
I am trying to use mrtg-ping-probe to watch error rates on a T1.
With this cfg file:
WorkDir: /Library/WebServer/Documents/mrtg
Refresh: 600
# T1 ALX ping
Title[t1_alx.ping]: Ping to T1 ALX
PageTop[t1_alx.ping]: <H1>Ping to T1 ALX</H1>
MaxBytes[t1_alx.ping]: 180
AbsMax[t1_alx.ping]: 10000
WithPeak[t1_alx.ping]: ymwd
Options[t1_alx.ping]: gauge
Target[t1_alx.ping]: `mrtg-ping-probe 207.188.192.97`
YLegend[t1_alx.ping]: round trip time
ShortLegend[t1_alx.ping]: ms
Legend1[t1_alx.ping]: Maximum Round Trip Time in ms
Legend2[t1_alx.ping]: Minimum Round Trip Time in ms
Legend3[t1_alx.ping]: Maximal 5 Minute Maximum Round Trip Time in ms
Legend4[t1_alx.ping]: Maximal 5 Minute Minimum Round Trip Time in ms
LegendI[t1_alx.ping]: Max:
LegendO[t1_alx.ping]: Min:
# T1 ALX Packetloss
Target[t1_alx.loss]: `mrtg-ping-probe -t 42 -p loss/loss 207.188.192.97`
Title[t1_alx.loss]: Packet Loss Analysis
PageTop[t1_alx.loss]: <H1>Packet Loss Analysis</H1>
MaxBytes[t1_alx.loss]: 100
AbsMax[t1_alx.loss]: 101
WithPeak[t1_alx.loss]: ymwd
Options[t1_alx.loss]: gauge
Unscaled[t1_alx.loss]: dwmy
YLegend[t1_alx.loss]: % Packet Loss
ShortLegend[t1_alx.loss]: %
Legend1[t1_alx.loss]: % Packet Loss
Legend2[t1_alx.loss]: % Packet Loss
Legend3[t1_alx.loss]: Maximal 5 Minute % Packet Loss
Legend4[t1_alx.loss]: Maximal 5 Minute % Packet Loss
LegendI[t1_alx.loss]: % loss:
LegendO[t1_alx.loss]: % loss:
and this crontab line:
0-59/5 * * * * root /opt/local/bin/mrtg /
Library/WebServer/Documents/mrtg/cfg/ping-loss-207.188.192.97.cfg --
logging /var/log/mrtg.log
I get the following mrtg errors:
2005-07-21 16:20:01 -- Started mrtg with config '/Library/WebServer/
Documents/mrtg/cfg/ping-loss-207.188.192.97.cfg'
2005-07-21 16:20:01 -- Can't exec "mrtg-ping-probe": No such file or
directory at /opt/local/bin/mrtg line 1685.
2005-07-21 16:20:01 -- WARNING: Running 'mrtg-ping-probe
207.188.192.97': No such file or directory
2005-07-21 16:20:01 -- WARNING: Could not get any data from external
command 'mrtg-ping-probe 207.188.192.97'
Maybe the external command did not even start. (No such file or
directory)
2005-07-21 16:20:01 -- WARNING: Problem with External get 'mrtg-ping-
probe 207.188.192.97':
Expected a Number for 'in' but nothing'
2005-07-21 16:20:01 -- WARNING: Problem with External get 'mrtg-ping-
probe 207.188.192.97':
Expected a Number for 'out' but nothing'
2005-07-21 16:20:01 -- Can't exec "mrtg-ping-probe": No such file or
directory at /opt/local/bin/mrtg line 1685.
2005-07-21 16:20:01 -- WARNING: Running 'mrtg-ping-probe -t 42 -p
loss/loss 207.188.192.97': No such file or directory
2005-07-21 16:20:01 -- WARNING: Could not get any data from external
command 'mrtg-ping-probe -t 42 -p loss/loss 207.188.192.97'
Maybe the external command did not even start. (No such file or
directory)
2005-07-21 16:20:01 -- WARNING: Problem with External get 'mrtg-ping-
probe -t 42 -p loss/loss 207.188.192.97':
Expected a Number for 'in' but nothing'
2005-07-21 16:20:01 -- WARNING: Problem with External get 'mrtg-ping-
probe -t 42 -p loss/loss 207.188.192.97':
Expected a Number for 'out' but nothing'
2005-07-21 16:20:01 -- ERROR: Target[t1_alx.ping][_IN_] ' $target->[0]
{$mode} ' did not eval into defined data
2005-07-21 16:20:01 -- ERROR: Target[t1_alx.ping][_OUT_] ' $target->
[0]{$mode} ' did not eval into defined data
2005-07-21 16:20:01 -- ERROR: Target[t1_alx.loss][_IN_] ' $target->[1]
{$mode} ' did not eval into defined data
2005-07-21 16:20:01 -- ERROR: Target[t1_alx.loss][_OUT_] ' $target->
[1]{$mode} ' did not eval into defined data
When I run the individual 'target' mrtg-ping-probe commands I get the
following:
[ibb-80:local/var/log] bw% mrtg-ping-probe 207.188.192.97
15
11
and
[ibb-80:local/var/log] bw% mrtg-ping-probe -t 42 -p loss/loss
207.188.192.97
0
0
Anyone see anything glaringly wrong?
Thanks.
bw
---
Bill Whitacre
bw at his.com
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list