[rrd-users] Re: Graphing total MBs used in a month

Alex van den Bogaerdt alex at ergens.op.HET.NET
Tue Jun 18 13:26:24 MEST 2002


Matt Hyne wrote:

> Basically, I need to reset a counter at the beginning of the billing 
> period, then add the difference in ifInOctets between sampling periods to 
> build up the total BW used - then graph it.

Basically, you need to make use of the fact that an average multiplied
by an amount of time results in the total amount of bytes.

If you create a graph starting at 20020515 ending at start+30d
this results in an average of 2 MB/s.  If the average is 2 MB/s
and the amount of seconds is 30*86400 then the amount of MB is
30*86400*2.

Use rrdtool graph *without* graphing elements but *with* PRINT (not
GPRINT) do calculate the average.

Oh, and read the archives next time.
-- 
   __________________________________________________________________
 / 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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list