[mrtg] Re: How does it get those funky numbers?

PAUL WILLIAMSON pwilliamson at mandtbank.com
Mon Jul 22 15:07:08 MEST 2002


First item is incorrect.  MRTG just pulls the number.  The first number plotted is 
the DELTA of poll 1 and 2.  To get averages, it does it like this:

It gets 6 polls in 30 minutes, so it adds all the entries up and divides by 6.  
Voila!  There's your 30 minute average.  

How it does the monthly (2 hour) averages or the yearly (1 day) averages 
is really averages of averages.  Since the 5 minute polls don't exist 
for longer than 400 polling intervals, that's how it gets those averages.  
In your example, 1500 would be the first entry in the database.

Don't forget normalization.  More than likely, you will not poll the device at exactly the same interval, so MRTG makes allowances for that.  

Paul

>>> "Matt Katona" <mkatona at comwavz.com> 07/22/02 08:40AM >>>

Ok, management is asking about how MRTG pulls it's numbers. This is how I understand it (i'm looking for correction/clarification)

MRTG reads the counter for an OID and records it (ie: 1000) and plots it on the graph
MRTG sleeps for five minutes then reads the counter again,  (ie: 2500). Now MRTG subtracts 1000 from 2500 and plots 1500 on the graph. 
MRTG repeats step two every 5 minutes.

But how does the "average" get calculated? 

-+-+-+-+-+-+-+-+-+-+-+-
Matthew Katona
ComWavz
Systems Engineer
O:419-859-2194 x1771
C:419-460-1776
http://www.comwavz.com 
"Consistency is the last refuge of the unimaginative" tagged by Oscar Wilde (1854-1900)

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


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