Re: [rrd-users] CDEF 0 in rrdtool graph

2017-02-14 Thread Jacques du Toit
Hi Oliver I’m afraid you’ll always need a DEF from somewhere. I’ve done plenty of workarounds like this, including having an empty rrdfile that is never updated. Usually I end up doing something like this to get just a 0 value... DEF:foo=/some/empty/rrdfile.rrd:foo:AVERAGE CDEF:myval=foo,POP,0

Re: [rrd-users] CDEF 0 in rrdtool graph

2017-02-14 Thread Olivier Doucet
Hi, 2017-02-14 19:44 GMT+01:00 SolarMan : > Hello Olivier, > The error message is confusing and should actually read: > rrdtool.OperationalError: rpn expressions without DEF or CDEF variables are > not supported > as it does in other cases. > The meaning is clear: you must use a DEF or CDEF in y

Re: [rrd-users] CDEF 0 in rrdtool graph

2017-02-14 Thread SolarMan
Hello Olivier, The error message is confusing and should actually read: rrdtool.OperationalError: rpn expressions without DEF or CDEF variables are not supported as it does in other cases. The meaning is clear: you must use a DEF or CDEF in your CDEF definition. Regards, hans -- View this messa

[rrd-users] CDEF 0 in rrdtool graph

2017-02-14 Thread Olivier Doucet
Hello, It seems "CDEF:mydefinition=0" is not handled correctly and gives this error : ERROR: don't undestand '0' This expression is present in documentation though : https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html I'm using RRDtool 1.5.3 Is this a bug in software ? In documentation ?