[mrtg] mrtg current value calc

Jay Hennigan jay at west.net
Tue Oct 13 00:15:57 CEST 2009


Miki C wrote:
> Hi
> 
> I have pretty much spent whole day today trying to figure out how mrtg
> calculates the "current" value for in and out bandwidth usage.

Take the most recent absolute counter value.  Subtract the absolute 
counter value for the previous sample (normally 300 seconds earlier). 
Divide this result by the number of seconds between the samples 
(normally 300).

This is the current value in bytes.  If "bits" option is selected, 
multiply by 8.

--
Jay Hennigan - CCIE #7880 - Network Engineering - jay at impulse.net
Impulse Internet Service  -  http://www.impulse.net/
Your local telephone and internet company - 805 884-6323 - WB6RDV



More information about the mrtg mailing list