[mrtg] Error with Ping-Probe
Steve Shipway
s.shipway at auckland.ac.nz
Fri May 29 00:17:03 CEST 2015
Try running your external script from the commandline:
/etc/pingprobe/mrtg-ping-probe 10.10.1.2 -c 5
Probably, it is returning an error for some reason. Also, run it as the
user that MRTG runs as - some systems will not let a non-root user run ping.
This is how we call mrtg-ping-probe (replace %SHNAME% and %IPADDR%
appropriately):
Target[%SHNAME%-ping]: `/u01/mrtg/bin/mrtg-ping-probe -p '1000*max/1000*min'
-s %IPADDR%` / 1000000
Title[%SHNAME%-ping]: Ping times to %SHNAME%
MaxBytes[%SHNAME%-ping]: 5
AbsMax[%SHNAME%-ping]: 10
PageTop[%SHNAME%-ping]: null
Options[%SHNAME%-ping]: gauge nopercent
YLegend[%SHNAME%-ping]: RTT Seconds
ShortLegend[%SHNAME%-ping]: s
Legend1[%SHNAME%-ping]: Round Trip Time range
Legend2[%SHNAME%-ping]: Round Trip Time range
Legend3[%SHNAME%-ping]: High Peak 5min RTT
Legend4[%SHNAME%-ping]: Low Peak 5min RTT
LegendI[%SHNAME%-ping]: High:
LegendO[%SHNAME%-ping]: Low:
routers.cgi*ShortName[%SHNAME%-ping]: Ping: RTT
routers.cgi*Options[%SHNAME%-ping]: nomax nototal scaled nopercent
routers.cgi*GraphStyle[%SHNAME%-ping]: range
routers.cgi*InCompact[%SHNAME%-ping]: no
routers.cgi*UnScaled[%SHNAME%-ping]: none
routers.cgi*BgColour[%SHNAME%-ping]: #ffffff
routers.cgi*Icon[%SHNAME%-ping]: clock-sm.gif
routers.cgi*UpperLimit[%SHNAME%-ping]: 0.01
Steve
Steve Shipway
<mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz
(GNU Terry Pratchett)
From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch]
On Behalf Of Rick Silacci
Sent: Friday, 29 May 2015 9:54 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Error with Ping-Probe
I'm getting this error in my log file when using the cfg file below:
: WARNING: Problem with External get '/etc/pingprobe/mrtg-ping-probe
10.10.1.1':
Expected a Number for 'in' but nothing'
Target[10.10.1.2ping]:`/etc/pingprobe/mrtg-ping-probe 10.10.1.2 -c 5`
Directory[10.10.1.2ping]: 10.10.1.2
SetEnv[10.10.1.2ping]: MRTG_INT_IP="10.10.1.2"
Title[10.10.1.2ping]: Latency
PageTop[10.10.1.2ping]: <H1>Latency For 10.10.1.2</H1>
MaxBytes[10.10.1.2ping]: 180
AbsMax[10.10.1.2ping]: 10000
WithPeak[10.10.1.2ping]: ymwd
Options[10.10.1.2ping]: gauge, growright
YLegend[10.10.1.2ping]: ms
ShortLegend[10.10.1.2ping]:ms
Legend1[10.10.1.2ping]:Maximum Round Trip Time in ms
Legend2[10.10.1.2ping]:Minimum Round Trip Time in ms
LegendI[10.10.1.2ping]: Max:
LegendO[10.10.1.2ping]: Max:
Any ideas?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150528/c8789619/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 10311 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150528/c8789619/attachment-0001.bin>
More information about the mrtg
mailing list