[rrd-users] rrdtool Gauge wrong data

Thierry Silly thierry.silly at db.com
Mon Feb 12 14:39:27 MET 2001



Hello,

     I have some problems using rrdtool with Gauge data.

I saw in the mail archive that I'm not the only one. When I create a .rrd file with gauge, the data in the rrd file are not always the same I entered.

While doing some tests I saw that each time I update the database with a new value, a calculation is made on it, and the result is a little different than the data I entered. If I entrer the data a second time, the result is fine.


Please have a look at the result I get in a xml file:
########################################################################
                         <row><v> 1.0000010000e+006 </v>
new value 1524 entered        <row><v> 4.8119593333e+004 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
                         <row><v> 1.5240000000e+003 </v>
new value 152432 entered <row><v> 1.4538962667e+005 </v>
                         <row><v> 1.5243200000e+005 </v>
                         <row><v> 1.5243200000e+005 </v>
                         <row><v> 1.5243200000e+005 </v>
                         <row><v> 1.5243200000e+005 </v>
##########################################################################


I use a perl script to create/update the file:

#############################################################################################################################
#@args=($rrd,'-b',$statime,'-s',$stetime,"DS:in:GAUGE:600:U:U","DS:out:GAUGE:600:U:U","RRA:AVERAGE:0.5:1:250");
#@argst=($rrdt,'-b',$statime,'-s',$stetime,"DS:in:GAUGE:600:U:U","DS:out:GAUGE:600:U:U","RRA:AVERAGE:0.5:1:250");

#RRDs::create(@args);
#RRDs::create(@argst);

$lastime=RRDs::last($rrd);
$lastime=$lastime+300;
$resfint=2000;
$resfint2=1042345;
$resfint3=152432;


RRDs::update ("$rrd", "--template", "in:out", "N:$resfin:$resfint");
RRDs::update ("$rrdt", "--template", "in:out", "N:$resfint3:$resfint2");
################################################################################################################################

If I create a RRA LAST instead of an AVERAGE I get the same problem.



Does someone have an idea of what it could be ?
I don't not understand why something happen each time there is a new data, something is calculated on it.


Many thanks in advance for your help,
BRgds,
Thierry





--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



--
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