[rrd-users] Detecting and handling unknown data
John huysing
jhuysing at gmail.com
Mon Aug 12 02:53:10 CEST 2013
After look at the CDEF tutorial
http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
and reading the section on handling unknown data
I thought I would try this to see if I could detect if had unknown data in
a rrd, so i could process it differently
If its unknown set the value to 10 else set to 0
CDEF:wrong=currTot,UN,10,0,IF
VDEF:Wrong=wrong,MAXIMUM
VDEF:AWrong=wrong,AVERAGE
PRINT:Wrong:%5.2lf ----> returns inf
PRINT:AWrong:%5.2lf ----> returns a value
The 2nd problem is when I try this
PRINT:AWrong:%c:strftime
I always get the start of unix time ....1970
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130812/42284927/attachment.htm
More information about the rrd-users
mailing list