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.ship...@auckland.ac.nz> s.ship...@auckland.ac.nz

P Please consider the environment before printing this e-mail : 打印本邮件,
将减少一棵树存活的机会

 

From: rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch] On
Behalf Of John huysing
Sent: Monday, 12 August 2013 12:53 p.m.
To: rrd-users@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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to