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`:[EMAIL PROTECTED]
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} :[EMAIL PROTECTED]' (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} :[EMAIL PROTECTED]' (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
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg