[mrtg] Re: MRTG math problem

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Dec 15 16:55:41 MET 2001


Presciliano dos Santos Neto wrote:

> I'm triyng to use % utilization in the y axis instead of utilization in
> bytes:
> 
> Tryed with Target[test]:
> 1.3.6.1.2.1.2.2.1.10.6&1.3.6.1.2.1.2.2.1.16.6:public at router:::::2/2048000*10
> 0 but no success.

You need whitespace around math operations.

You want to calculate (current / max ) * 100.  This can also be
written as (current / (max/100) ).  If max equals 2048000 then
max divided by 100 is 20480.  Current divided by 20480 gives the
percentage.

Prove:  If the current rate is at 50 percent then it is at 1024000.
1024000 / 20480 is 50.

You're using the default ifInOctets and ifOutOctets so your target
should be:  Target[test]: 6:public at router:::::2 / 20480

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