[rrd-users] Re: totals

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Jun 3 23:57:35 MEST 2002


Billy Cook wrote:
> 
> Hi,
> Does anyone know how to calculate the total value of a data point over a period of time?  I searched the list archive and was only able to find a VDEF TOTAL command that appears to be no longer supported. 

s/no longer/not yet/

Have a look at the 1.1.x beta.

However, total amount of bytes can be calculated so:  rate * time.

If you know the time (because you set it using --start and --end)
you can take the average and compute the total:

   --end now --start end-86400s
   DEF:ds0=/path/to/file.rrd:ds0:AVERAGE
   CDEF:sum=ds0,86400,*
   PRINT:sum:AVERAGE:"total = %6.2lf"

This doesn't take unknown intervals into consideration.

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