[mrtg] Re: Doing math with Multiple SNMP OID Targets

bear bear at tik.com.au
Tue Mar 20 06:39:19 MET 2001

Well unless someone else has an idea I dont know where to go now
unless maybe a quote or back tick maybe around the symbol ie: `-` or "-"
I would first try this on a working cfg file ie one using the + symbol first
pertty sure the back tick is the one ` not ' backtick is located left side
of keyboard next to the 1 ( one ) key
Anyone else have a sugestion ??
I am not a perl programer !
hope this helps

> Hi Bear:
> I've tried your suggestion below, and it works and successfully adds
> the return values of the OIDs together.  However, my original e-mail and
> what I wanted was to do the following:
> Total Disk Space - oid value #1 - oid value #2.
> In the above formula, the total disk space is a constant.  When
> using the negative signs in the formula above, it shifts the oid values
> being plotted on the "InBytes", to the "OutBytes", and does not actually
> subtract the values.
> Here is the target lines I've tried:
> Target[FRC_PAR_01.SYS2]:4096000  -
> at  -
> at
> and
> lic at  +
> at  -
> 4096000
--------Snip --------

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list