[mrtg] (no subject) ADDED: External Monitoring Script..
mailinglists at rednarb.com
Thu Jun 12 17:05:23 CEST 2008
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 192.168.10.1 secret .184.108.40.206.220.127.116.11.18.104.22.168.1.2
> enterprises.22.214.171.124.126.96.36.199.2.17756118 = 60
> enterprises.188.8.131.52.184.108.40.206.2.18116118 = 35
> I simply wanted to grab the latest value i.e. for the past 1 hour, 35 in
> this case.
Sure, so you have an external script that does this math for you. No problem.
> I hoped to plot that initially, and then plot an average for the second
> 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
More information about the mrtg