[rrd-users] First gauge value isn't stored - what am I doing wrong?

A Darren Dunham ddunham at taos.com
Mon Nov 30 19:52:54 CET 2009


On Mon, Nov 30, 2009 at 06:08:20PM +0100, Joachim Schrod wrote:
>     rrdtool create test.rrd --start '00:00 24.11.2009' \
>         --step 86400 DS:count:GAUGE:172800:0:U RRA:MAX:0.9:1:30

> Now I simulate the 1st measurement:
> 
>     rrdtool updatev test.rrd '00:30 24.11.2009'@1573

> Now, 2nd measurement the next day:
> 
>     puma:data $ rrdtool updatev test.rrd '00:30 25.11.2009'@1574
>     return_value = 0
>     [1259020800]RRA[MAX][1]DS[count] = NaN
> 
> Oops? Why is NaN stored here for the Nov 24 value?

Hmm.  I can't replicate this.

What version of RRD are you using, and what is your TZ variable set to?  

$ cat date_test 
rrdtool create test.rrd --start '00:00 24.11.2009' --step 86400
DS:count:GAUGE:172800:0:U RRA:MAX:0.9:1:30
rrdtool updatev test.rrd '00:30 24.11.2009'@1573
rrdtool updatev test.rrd '00:30 25.11.2009'@1574
$ sh date_test
return_value = 0
return_value = 0
[1259107200]RRA[MAX][1]DS[count] = 1.5739687500e+03

> PS: This is rrdtool 1.3.4 from openSUSE 11.1, in case that matters.

Oops, missed that.  I tried it on 1.3.3 and got the output above.  

> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Joachim Schrod				Email: jschrod at acm.org
> Roedermark, Germany
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

-- 
Darren



More information about the rrd-users mailing list