[rrd-users] CDEF problem

Fernando Di Nucci fernando.dinucci at gmail.com
Tue Jan 27 20:40:05 CET 2009


Hi all,

I have a RRD containing some GAUGE data and I can successfully update 
and print graphs.

Now I need a graph representing the rate of variation of my data.
I tried, like in cdef tutorial:

....
     DEF:pippo=$d/db/temp.rrd:temp:AVERAGE \
     CDEF:prec=PREV(pippo) \
     CDEF:time=TIME \
     CDEF:prectime=PREV(time) \
     CDEF:derivate=pippo,prec,-,time,prectime,-,/ \
     LINE3:derivate#000077:derivate

but when I execute the script I get:

syntax error near unexpected token `('
  `    CDEF:prec=PREV(pippo) \'

and I can't understand why.

rrdtool ver 1.2.15 on a Debian Etch

Thank you for your help.



More information about the rrd-users mailing list