[mrtg] Re: Mathematically Derived Data

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Tue May 1 15:35:43 MEST 2001


Kerry Kincaid. wrote:
> 
> I want to perform math on a few OID's but the documentation does not provide
> an example for what I want to do.
> 
> FirstOID - SecondOID = First Graphed data
> 
> ThirdOID - FourthOID = Second graphed data
> 
> A sample config file line of how I would try to do this is
> 
> Target[xyz]: OID.1.1.1 - OID.2.2.2&OID.3.3.3 -
> OID.4.4.4:public at 999.888.777.666

The correct format to use is:

Target[xyz]: oid1&oid3:public at host - oid2&oid4:public at host

In other words, you need to specify two sources, each source
being an OID-pair.  These two sources can come from the same
host.

A more common example would be input and output from port x
minus input and output from port y:

(in these examples you need to change both x and y into a number)

Target[xyz]: ifInOctets.x&ifOutOctets.x:public at host
                   - ifInOctets.y&ifOutOctets.y:public at host

which can be abbreviated to

Target[xyz]: x:public at host - y:public at host

In both cases you're graphing input from port x minus input from port
y as the area, and output x - output y as the line.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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