Re: rrdtool 1.5 'don't understand' my previously working CDEF
Steve Shipway <[email protected]> Tue, 2 Feb 2016 22:35:09 +0000
| Newsgroups | gmane.comp.db.rrdtool.user |
|---|---|
| Message-ID | <5820DC553954E44FA1A36C78323AD148A4065E2F@uxcn10-6.UoA.auckland.ac.nz> |
> DEF:rawmax=myfile.rrd:value:MAX > CDEF:vmax=rawmax,85.00,EQ,NaN,rawmax,IF 'NaN' is not a valid RPN symbol in RRDTool. You should use UNKN instead. Also watch out for typos like embedded spaces or doubled commas. CDEF:vmax=rawmax,85,EQ,UNKN,rawmax,IF This will convert 85 into unknown. However, with this value potentially being a non-integer, due to Data Normalisation, the test may never return true (as 85.00001 is not equal to 85). Maybe instead try... CDEF:vmax=rawmax,85,GE,rawmax,86,LT,AND,UNKN,rawmax,IF Though, I'm not sure what you're trying to achieve by only excluding value 85. Steve Steve Shipway T: +64 9 3737 599 ext 86487 E: [email protected] _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
smime.p7s
(application/pkcs7-signature, 5.2 KB) - not displayed