[mrtg] (no subject) ADDED: External Monitoring Script..

Mark Tohill Mark at u.tv
Thu Jun 12 17:30:14 CEST 2008


Can I do something like this?

et at

Where /usr/local/mrtg-2.13.1/bin/NumOfRTTIn is a similar script to
RTTSumIn, taking in recent hourly value for Total RTT's collected.
Average for the last hour found by dividing these 2 values.

Am I fit too much onto one graph?


-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Eric Brander
Sent: 12 June 2008 16:05
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] (no subject) ADDED: External Monitoring Script..

On Thu, Jun 12, 2008 at 8:57 AM, Mark Tohill <Mark at u.tv> wrote:
> 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?

Not sure, but MRTG always requires 2 data points to build a graph.
They can be the same thing, just use NOO or NOI in your options to
exclude one or the other from being graphed. The first value in the
output will be graphed as "IN" and the second value will be graphed as

> 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 secret .
> enterprises. = 60
> enterprises. = 35
> I simply wanted to grab the latest value i.e. for the past 1 hour, 35
> this case.

Sure, so you have an external script that does this math for you. No

> I hoped to plot that initially, and then plot an average for the
> line, same graph.

Not sure what you mean here. Unless the external script does something
with that averaging then I don't think this will do what you want. If
you use NOO or NOI, you'll get only one line (or field) of data


Eric Brander

mrtg mailing list
mrtg at lists.oetiker.ch

More information about the mrtg mailing list