[rrd-users] CDEF - creating a increasing series

Lars Rune Bjørnevik lrb at sysit.com
Mon Sep 6 21:14:43 MEST 2004


Hi All!
I'm trying to create a series with 0,1,2,3,.....,n with the following CDEF statements:

DEF:Responce=test.rrd:ds0:AVERAGE 
(ds0 will be UNKNOWN, 0 or 1 in Responce)

CDEF:Cleaned=Responce,UN,0,Resp,IF
(Cleaned will be 0 or 1)

CDEF:One=Cleaned,-1,GT 
("One" - all values filled with 1)

CDEF:OneSum=One,PREV,+ 
Trying to sum up "One" to the series "OneSum" here, but no data....? 
There are no errors from rrdtool, it even produces the graphics, but no data.
Max min average last with GPRINT are all -1.#J

I've also tryed:
CDEF:OneSum=One,PREV,+
But this gives a series 2,1,1,1,1,1,1,.........,1

Any ideas anyone??
 
Regards,
Lars Rune Bjørnevik 
____________________________

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