[rrd-users] Cant' get exact values in rrd

KeesGoet kees.goet at wur.nl
Wed Oct 20 15:55:07 CEST 2010


I want to graph values, that are generated with a frequency of one value per
day.
I've tried everything to get these into RRDtool, but I don't succeed in
getting the
exact values into RRDtool:

First I create an rrd-file:
	TZ="UTC" rrdtool create my.rrd --start 1284501600 --step 86400 
DS:blocked:GAUGE:172800:0:U RRA:AVERAGE:0.5:1:800

Next the values are added:
   TZ="UTC" rrdtool update my.rrd `date -d "20100918" "+%s"`:657.0
   TZ="UTC" rrdtool update my.rrd `date -d "20100919" "+%s"`:427.0
   TZ="UTC" rrdtool update my.rrd `date -d "20100920" "+%s"`:563.0
   TZ="UTC" rrdtool update my.rrd `date -d "20100921" "+%s"`:1050.0
   TZ="UTC" rrdtool update my.rrd `date -d "20100922" "+%s"`:685.0
   TZ="UTC" rrdtool update my.rrd `date -d "20100923" "+%s"`:1120.0
	
Now, when I do a dump, the values I get are:
   <!-- 2010-09-19 00:00:00 UTC / 1284854400 -->
<row><v>4.3833333333e+02</v></row>
   <!-- 2010-09-20 00:00:00 UTC / 1284940800 -->
<row><v>6.0358333333e+02</v></row>
   <!-- 2010-09-21 00:00:00 UTC / 1285027200 -->
<row><v>1.0195833333e+03</v></row>
   <!-- 2010-09-22 00:00:00 UTC / 1285113600 -->
<row><v>7.2125000000e+02</v></row>
 
 So  427 is saved as  4.3833333333e+02
       563 is saved as  6.0358333333e+02
      1050 is saved as  1.0195833333e+03
        685 is saved as  7.2125000000e+02
	 
What should I do to get the exact numbers in the database?

Regards,
Kees.
-- 
View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Cant-get-exact-values-in-rrd-tp5654973p5654973.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.



More information about the rrd-users mailing list