[rrd-users] rpn to convert NaN to 0
kritek at gmail.com
Sat Mar 14 18:49:21 CET 2009
Hi folks, I have a CDEF that derives its value from two different
rrds, adds them, then displays the result. Sometimes one of the
sources doesn't update one of the rrds (on purpose, as this particular
thing being monitored isn't always running) so that rrd stores NaN.
However since num+NaN doesn't return num, the graph wont display CDEF
Sometimes the vicecast rrd is NaN, so I'd like to 'if vicecast=NaN
then set vicecast=0'.
Would I need two CDEFs, one to convert NaN to 0, then another to add them?
What rpn statement would I need to convert NaN to 0?
aRDy Music and Rick Dicaire present:
More information about the rrd-users