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

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


Hi
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
Bear


>
> 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
from
> 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  -
> 1.3.6.1.4.1.23.2.28.2.14.1.4.1&1.3.6.1.2.1.8.6.0:public at 10.128.1.40  -
> 1.3.6.1.4.1.23.2.28.2.14.1.5.1&1.3.6.1.2.1.8.6.0:public at 10.128.1.40
>
> and
>
>
Target[FRC_PAR_01.SYS2]:1.3.6.1.4.1.23.2.28.2.14.1.4.1&1.3.6.1.2.1.8.6.0:pub
> lic at 10.128.1.40  +
> 1.3.6.1.4.1.23.2.28.2.14.1.5.1&1.3.6.1.2.1.8.6.0:public at 10.128.1.40  -
> 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