<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 02/02/16 23:35, Steve Shipway wrote:<br>
<blockquote
cite="mid:5820DC553954E44FA1A36C78323AD148A4065E2F@uxcn10-6.UoA.auckland.ac.nz"
type="cite">
<blockquote type="cite">
<pre wrap="">DEF:rawmax=myfile.rrd:value:MAX
CDEF:vmax=rawmax,85.00,EQ,NaN,rawmax,IF
</pre>
</blockquote>
<pre wrap="">
'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.</pre>
</blockquote>
Tobi, Steve,<br>
<br>
thanks for help! I tried replacing NaN with UNKN in one failing
location now, and that worked. <br>
I *did* try that the other day, but in another location. And this
location still has an issue, even with UNKN. But this seems to be
related to the use of "-" in the var names:<br>
<br>
DEF:rawmaxout-north-air=file.rrd:value:MAX <br>
CDEF:vmaxout-north-air=rawmaxout-north-air,85.00,EQ,UNKN,rawmaxout-north-air,IF<br>
<br>
ERROR: don't understand
'rawmaxout-north,85.00,EQ,UNKN,rawmaxout-north,IF'<br>
<br>
By replacing - with _, it now works great. However, I expected "-"
to be a valid variable?<br>
<p style="color: rgb(0, 0, 0); font-family: sans-serif; font-size:
medium; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 24px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">"Variable names (<i>vname</i>)
must be made up strings of the following characters<span
class="Apple-converted-space"> </span><code>A-Z, a-z, 0-9, -,_</code><span
class="Apple-converted-space"> </span>and a maximum length of
255 characters."<br>
<a class="moz-txt-link-freetext" href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html">http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html</a></p>
<blockquote
cite="mid:5820DC553954E44FA1A36C78323AD148A4065E2F@uxcn10-6.UoA.auckland.ac.nz"
type="cite">
<pre wrap="">
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.</pre>
</blockquote>
Hm, so even if I store exactly 85 (in a gauge), data normalization
may turn this into something else?<br>
<br>
The value 85.00 is used in my source device (1-Wire temp sensors) to
indicate a read failure. I actually think I filter out this
nowadays, this script has some legacy... so may not even be required
here come to think about it!<br>
<br>
Well, my current issue is resolved, may look into the above
potential issue too.<br>
<br>
Thanks!<br>
</body>
</html>