[mrtg] Multi Target Syntax (with OID)

Albert Pang albertp at nortelnetworks.com
Tue Feb 19 16:00:10 MET 2002

I am using MRTG to monitor one OID of several devices.  The target that I am
using is:

Target[device1]: at device1
Target[device2]: at device2

And it works perfectly.

I would like to generate a extra graph monitoring the 'sum' of this variable
on the two devices.

I read in the MRTG reference guide (under the section called Multi Target
Syntax) that you can 'use several statements in a mathematical expression'
to aggregate values.  The example that is in the documentation is:

Target[ezwf]: 2:public at wellfleetA + 1:public at wellfleetA
Can you do the same thing with OID?  When I tried the following:

Target[all]: at device1
+ at device2


Target[all]: at device1 + at device2 & at device1 + at device2 

I got syntax error from MRTG.  Is it supposed to work?


Albert Pang
Nortel Networks
E-mail: albertp at nortelnetworks.com

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