[rrd-users] Need help with a CDEF/AREA setup

Erik de Mare erik at oezie.org
Sat Oct 27 11:33:29 CEST 2007


Hi,

INF only graphs from 0 to infinity, so negative values will never be 
covered.

you can add an other CDEF for the negative part with NEGINF.

http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html
INF, NEGINF

Pushes a positive or negative infinite value on the stack. When such a 
value is graphed, it appears at the top or bottom of the graph, no 
matter what the actual value on the y-axis is.

so your other CDEF would be like:
CDEF:night=LTIME,86400,%,$1,LT,NEGINF,LTIME,86400,%,$2,GT,NEGINF,UNKN,Basement,*,IF,IF


Mvg,

Erik

Paul Rimmer schreef:
> Hi,
> 

> The line that defines the CDEF used for night is:
> 
> 
> CDEF:night=LTIME,86400,%,$1,LT,INF,LTIME,86400,%,$2,GT,INF,UNKN,Basement,*,IF,IF
> \

> Cheers,
> Paul
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list