[rrd-users] Why with RRDs::update I do not have exactly the value in rrd db file?

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Wed Mar 17 14:41:17 CET 2010


----- Original Message ----- 
From: "jvalenzu" <jvalenzu at reduno.com.mx>
To: <rrd-users at lists.oetiker.ch>
Sent: Monday, September 07, 2009 11:26 PM
Subject: [rrd-users] Why with RRDs::update I do not have exactly the value 
in rrd db file?


>
> My perl script fragment:
>                RRDs::update "$rrd/$filenamestring\_$gstring.rrd","-t",
>                "$var1:$var2:$var3",
>                "N:$val1:$val2:$val3";
>
> The exact value of $val1, $val2, $val3:
>
> 4,4,4 respectively
>
> My fetch data in the time:
>
> Mon Sep  7 17:20:00 2009 4.0000000000e+00 3.9787671033e+00 
> 3.9787671033e+00
> Mon Sep  7 17:25:00 2009 nan nan nan
>
> 4 is not exactly equals to 3.9787671033e+00 I need to see exactly see 4.
> Please let me know. Thanks.


If you need exactly 4, then you need to use the timestamps corresponding 
with exactly 17:20:00 and 17:25:00. Don't use "N". Make sure to understand 
normalization, see http://www.vandenbogaerdt.nl/rrdtool/ 



More information about the rrd-users mailing list