[rrd-users] Re: Calculating average when aggregating

Geert van der Ploeg rrd at geert.triple-it.nl
Mon Aug 5 10:59:29 MEST 2002


> I need to aggregate some rrds into one graph. If I do this, the 
> aggregated graph starts with the timestamp when the last rrd was started.
> 
> To get around this, i use the following RPN:
> 
> ds1,UN,0,ds1,IF
> 
> Now the graph seems to be ok, but the average is calculated for the 
> whole time period. This is also a problem, because especially for the 
> yearly graph, the average isn't as high as it should be (a lot of zero 
> values where there should be unknowns).
> 
> Does anybody know, how I get around this ?


You should create another CDEF, for the average-calculating.

So:
1 CDEF for making a nice graph (converting UNKNOWN values into zero's)
1 CDEF for calculating an average (leaving the UNKNOWN values as-is)

And then graph the nice-graph-CDEF, and print the average-CDEF.


Regards,

Geert van der Ploeg
Triple IT

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