[mrtg] (no subject)

Mark Tohill Mark at u.tv
Thu Jun 12 16:15:56 CEST 2008


Hi,

Can anyone give me a pointer as to what may be wrong with the following?

#UDP JITTER
Target[UDPJITTER-RTTLATEST]:`/usr/local/mrtg-2.13.1/bin/RTTSumIn`&`/usr/
local/mrtg-2.13.1/bin/RTTSumIn`:secret at 192.168.10.1
Options[UDPJITTER-RTTLATEST]: integer, gauge
Title[UDPJITTER-RTTLATEST]: MRTG Stats - UDPJITTER RTT LATEST
PageTop[UDPJITTER-RTTLATEST]: <h1>UDPJITTER RTT LATEST</h2>
MaxBytes1[UDPJITTER-RTTLATEST]: 100
YLegend[UDPJITTER-RTTLATEST]: Time (ms)


RTTSumIn script as follows:

#!/bin/bash
RTTSumIn="snmpwalk 192.168.10.1 secret .1.3.6.1.4.1.9.9.42.1.3.5.1.2"
$RTTSumIn | tail -n 1 | awk '{ print $3 }'

And returns a single value as expected...

[root]# pwd
/usr/local/mrtg-2.13.1/bin
[root]# ./RTTSumIn
53


On running MRTG:

[root]# /usr/local/mrtg-2.13.1/bin/mrtg /export/mrtg/newmrtg.cfg
WARNING: Problem with External get
'/usr/local/mrtg-2.13.1/bin/RTTSumIn':
   Expected a Number for 'out' but nothing'

ERROR: Target[udpjitter-rttlatest][_IN_] ' $target->[289]{$mode} &
$target->[289]{$mode} :cisco at 192.168.10.1' (warn): Array found where
operator expected at (eval 590) line 1, at end of line
ERROR: Target[udpjitter-rttlatest][_OUT_] ' $target->[289]{$mode} &
$target->[289]{$mode} :cisco at 192.168.10.1' (warn): Array found where
operator expected at (eval 591) line 1, at end of line

Am I calling the script from within newmrtg.cfg properly?


Thanks,
Mark


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080612/da5b60d5/attachment.html 


More information about the mrtg mailing list