[rrd-users] CDEF 0 in rrdtool graph

Olivier Doucet webmaster at ajeux.com
Tue Feb 14 19:49:35 CET 2017


2017-02-14 19:44 GMT+01:00 SolarMan <hans at vega.demon.nl>:

> 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

Thank you Hans for your quick response. I understand the documentation is
wrong then.

Any idea how to easily create a DEF with 0 value all along ? I'm using it
in a automatized script that write the whole 'rrdtool graph' line, and when
original DEF file is not present, I would like to replace it with 0 to keep
the same logic.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20170214/132b1a9f/attachment.html>

More information about the rrd-users mailing list