[rrd-users] Re: Numbers being stored as NaN

Mike Lindsey coyote at gmail.com
Sat Jul 24 03:38:30 MEST 2004


The cronjob that does the update runs every five minutes.

I'm polling ifOutOctets from a switch.  Then doing the update....  To
pull it back out, I'm just doing an rrdtool dump...  if I do an
arbitrarily small number, like.. 12, or 2^63, value for last_ds is
!0...  if I let the cronjob do the update, or update manually with a
similar value, I get the right last_ds, but value 0....

I'm just really confused as to why it's setting the value of middle
range numbers to 0/NaN...

I've been banging my head against this all day, as well as off and on
all week....  If there's anything else I can tell you that would help
to figure out what the hell's going wrong, just ask...  :)

$ rrdtool update 192.168.20.251/ifOutOctets.16867328 -t val N:2185308832
$ rrdtool dump 192.168.20.251/ifOutOctets.16867328 | head -20
<!-- Round Robin Database Dump -->
<rrd>
        <version> 0001 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1090628709 </lastupdate> <!-- 2004-07-23 17:25:09 PDT -->

        <ds>
                <name> val </name>
                <type> COUNTER </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> 9.2233720287e+17 </max>

                <!-- PDP Status -->
                <last_ds> 2185308832 </last_ds>
                <value> 0.0000000000e+00 </value>
                <unknown_sec> 9 </unknown_sec>
        </ds>

<!-- Round Robin Archives -->

$ rrdtool dump 192.168.20.251/ifOutOctets.16867328.rrd |tail
                        <!-- 2004-07-23 17:05:00 PDT / 1090627500 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:10:00 PDT / 1090627800 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:15:00 PDT / 1090628100 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:20:00 PDT / 1090628400 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:25:00 PDT / 1090628700 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:30:00 PDT / 1090629000 -->
<row><v> NaN </v></row>
                        <!-- 2004-07-23 17:35:00 PDT / 1090629300 -->
<row><v> NaN </v></row>
                </database>
        </rra>
</rrd>



On Fri, 23 Jul 2004 17:58:13 -0400, dan.byers at magma.ca
<dan.byers at magma.ca> wrote:
> since you're using the default step value of 300 seconds, are you updating
> the rrd every 5 minutes?
> what's your cmd/code for the fetch?  let's see the options you're using.
> 
> explain your situation and steps more... we'll help you faster that way.
> 
> Mike Lindsey <coyote at gmail.com>
> Sent by: rrd-users-bounce at list.ee.ethz.ch
> 23/07/2004 05:41 PM
> 
> To
> rrd-users at list.ee.ethz.ch
> cc
> 
> Subject
> [rrd-users] Numbers being stored as NaN
> 
> 
> 
> 
> So, I've got this problem.  It's weird.  And I'm not sure what's causing
> it.
> 
> Small numbers go in just fine.  Though I question the value:
> last_ds 12
> value 8.7450460352e+07
> 
> Large numbers go in just fine, all the way up to a signed 64 bit number.
> last_ds 922337203685477580
> value 9.2233720377e+17
> 
> middling numbers, like the kind I'm getting out of my network device
> and want to actually store end up with a value of 0.
> 
> last_ds> 2185224952
> value 0.0000000000e+00
> 
> So, um, what the hell's going on?
> 
> update syntax that I'm using:
> rrdtool update file.rrd -t value N:2185224952
> 
> create syntax:
> rrdtool create file.rrd DS:value:COUNTER:600:U:U RRA:AVERAGE:0.5:1:1200
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 
>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list