[rrd-users] Re: Can CDEF be made to compute averages from 2 different data sources ?

Serge Maandag serge.maandag at staff.zeelandnet.nl
Fri Feb 27 10:45:55 MET 2004


> I've 2 different data sources from 2 separate RRD files.
> Both heartbeats are the same, and the 'step' for both RRD 
> files are the same.
>  
> Is it possible to write a CDEF to compute the average of some of the
> samples from these 2 data sources and then graph this average value ?

Should be as simple as:

DEF:a=a.rrd:ds0:AVERAGE
DEF:b=b.rrd:ds0:AVERAGE
CDEF:avg=a,b,+,2,/
AREA:avg#0000FF:average of a and b

Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

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