[rrd-users] Re: CDEF - creating a increasing series

ciaran deignan ciaran.deignan at netcelo.com
Tue Sep 7 09:28:32 MEST 2004


>CDEF:OneSum=One,PREV,+ 
>Trying to sum up "One" to the series "OneSum" here, but no data....? 
>  
>

this one I'm currently playing with ;)

The first time the expression is encountered, PREV is undef.
But a value and UNDEF combined make... undef!
So second time around PREV is *still* UNDEF, and so it continues ;)

You need to do something like:   
    CDEF:OneSum=PREV,UN,0,PREF,IF,One,+

Personally I'm trying to calculate total traffic volume by summing a 
counter, but
its difficult since you need to multiply the "counter is a rate" by the 
effective step,
but the effective step is decided automatically by RRD depending on the 
size of the
graph, and RRD doesn't appear to make this value available to CDEF 
operations :(

Anyway, hope this helps
ciaran

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