[rrd-users] Getting NaN in CDEF with LIMIT but the DEF has a validnumber

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Wed Dec 28 04:39:21 CET 2011


Just guessing here: maybe somehow some numbers are bigger than 100 but smaller than 1.00000000005e+02

I think you can test this by subtracting 100 in a CDEF and print the outcome.



----- Original Message ----- 
From: "Tom Jefferson" <tjefferson2001 at hotmail.com>
To: <rrd-users at lists.oetiker.ch>
Sent: Wednesday, December 28, 2011 3:55 AM
Subject: [rrd-users] Getting NaN in CDEF with LIMIT but the DEF has a validnumber






I have spent a number of days re-reading the docs, searching the web, and searching old email archives but I can't find the answer to this. I have been using RRD for a long time but this issue has me stumped. I have an rrd that records a percent value from 0 - 100. When I use a CDEF with LIMIT 0,100 I get a number of NaNs but I can't figure out why. The data shows the DEF value as 100 for those periods. Any thoughts?     I ran an XPORT to see the original DEF calue and the CDEF, here is what I am seeing: rrdtool xport DEF:ds450=450.rrd:450:AVERAGE CDEF:limit450=ds450,0,100,LIMIT XPORT:ds450:"source" XPORT:limit450:"mod"
<?xml version="1.0" encoding="ISO-8859-1"?><xport>
  <meta>
    <start>1324954500</start>
    <step>300</step>
    <end>1325040900</end>
    <rows>289</rows>
    <columns>2</columns>
    <legend>
      <entry>source</entry>
      <entry>mod</entry>
    </legend>
  </meta>
  <data>
    <row><t>1324954500</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324954800</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324955100</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324955400</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324955700</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324956000</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324956300</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324956600</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324956900</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324957200</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324957500</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324957800</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324958100</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324958400</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324958700</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324959000</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324959300</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324959600</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324959900</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324960200</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324960500</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324960800</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324961100</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324961400</t><v>1.0000000000e+02</v><v>NaN</v></row>
    <row><t>1324961700</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324962000</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324962300</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324962600</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>
    <row><t>1324962900</t><v>1.0000000000e+02</v><v>1.0000000000e+02</v></row>  Thanks,   Tim    


--------------------------------------------------------------------------------


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




More information about the rrd-users mailing list