[rrd-users] Detecting and handling unknown data
Steve Shipway
s.shipway at auckland.ac.nz
Mon Aug 12 03:22:34 CEST 2013
The second issue, where AWrong:%c:strftime gives the epoch (IE, time 0) is
because the AVERAGE operator in a VDEF does not set the time component ¨C
after all, what should it set it to? The MAX and MIN operators set the time
component to the time of the peak in question, but AVG doesn¡¯t have any
specific point in time, hence it is not set (or rather, it is set to zero).
For the first issue, I¡¯m not sure why this should be; you should be getting
¡®10¡¯ or ¡®0¡¯, if I read it correctly. It might help to give more details
¨C the DEF statement, the rrdinfo for the RRD file in question, and the
version of RRDtool you¡¯re using.
Steve
_____
Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 923 6487
Mobile: +64 (0)21 753 189
Email: <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz
P Please consider the environment before printing this e-mail : ´òÓ¡±¾Óʼþ£¬
½«¼õÉÙÒ»¿ÃÊ÷´æ»îµÄ»ú»á
From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of John huysing
Sent: Monday, 12 August 2013 12:53 p.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] Detecting and handling unknown data
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/8dc5d601/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130812/8dc5d601/attachment-0001.bin
More information about the rrd-users
mailing list