[mrtg] (no subject) ADDED: External Monitoring Script..
Mark at u.tv
Thu Jun 12 16:57:12 CEST 2008
Thanks for the help.
Sorry about the subject.
Why does the script need to return 2 values? Can I not plot the same
value twice i.e. name the script for both in and out?
The OID does return two values, from CISCO-RTTMON-MIB. The two values
are because it stores values for two hours, hence two values:
[root]# snmpwalk 192.168.10.1 secret .188.8.131.52.184.108.40.206.220.127.116.11.1.2
enterprises.18.104.22.168.22.214.171.124.2.17756118 = 60
enterprises.126.96.36.199.188.8.131.52.2.18116118 = 35
I simply wanted to grab the latest value i.e. for the past 1 hour, 35 in
I hoped to plot that initially, and then plot an average for the second
line, same graph.
Am I missing something?
From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Eric Brander
Sent: 12 June 2008 15:29
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] (no subject)
On Thu, Jun 12, 2008 at 8:15 AM, Mark Tohill <Mark at u.tv> wrote:
> Can anyone give me a pointer as to what may be wrong with the
> #UDP JITTER
local/mrtg-2.13.1/bin/RTTSumIn`:secret at 192.168.10.1
Your syntax is wrong on the target line. Also, your external script
First, the script needs to output a minimum of 2 numbers.
Second, you only need to call the script once on the target line, with
no secret or address.
See http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html and search
for "External Monitoring Scripts".
And just a side note. I install my MRTG just as you did in /usr/local
however I create a symbolic link to it at /usr/local/mrtg and run
everything using that path. That way when there is a new version of
MRTG all I need to do is install it to its own directory and then
change the link.
mrtg mailing list
mrtg at lists.oetiker.ch
More information about the mrtg