[mrtg] operations on OIDs

WEYMIENS Bruno FTRD/DMI/SOP bruno.weymiens at rd.francetelecom.com
Tue Oct 2 17:09:36 MEST 2001


hi,

I'd like to have help ("indeed ?") :
- I'd like to graph the % of an interface's load, ie. the sum of the
ifInOctets & the ifOutOctets, divided by the maximum throughput
- I suceeded in summing the ifInOctets & the ifOutOctets, writing smthg like
:
Target[link_load]:
.1.3.6.1.2.1.2.2.1.10.1&.1.3.6.1.2.1.2.2.1.10.1:com at a.b.c.d +
.1.3.6.1.2.1.2.2.1.16.1&.1.3.6.1.2.1.2.2.1.16.1:com at a.b.c.d
- I divided this by 2.000.000 (maximum througput), so writing :
Target[link_load]:
.1.3.6.1.2.1.2.2.1.10.1&.1.3.6.1.2.1.2.2.1.10.1:com at a.b.c.d +
.1.3.6.1.2.1.2.2.1.16.1&.1.3.6.1.2.1.2.2.1.16.1:com at a.b.c.d / 2000000, 
and now all = zero.

should I add parenthesis before division ?
is there a more simple way to do it ?
I looked at the faq.mrtg.org, but there's nothing for 'mathematical',
neither 'operations'...

regards

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