[rrd-users] Bug in dump/restore
Benny Baumann
BenBE at geshi.org
Tue Oct 20 15:56:04 CEST 2009
Hi, when I enhanced the rrd_dump method a bit I did some changes to
rrd_dump to reduce the output of spaces. IDK if this has any effect, but
the versions affected by this aren't before 1.3.999*. Please recheck
with a version there, if you notice any differences and report back please.
In addition it would be nice if you could have a look if this affects
import (restore) or export (dump) of an RRD file, but given your initial
export had the correct values still present I suspect the error to be
within rrd_restore. Please try to verify this by querying the stored
values using a rrd_fetch or simular means.
Another detail which might be of interest: Which locales are you using
when running rrdtool?
Regards,
BenBE.
P.S.: A short "summary" like "precision lost with reimport" would have
been nice ;-)
Am 20.10.2009 12:11, schrieb Fabian Zimmermann:
> Hello,
>
> is there a known bug in dump/restore of rrdtool? I tried to find some
> more information, but google didn't return anything useful.
>
> If I do a:
>
> rrdtool dump test.rrd > dump.xml
>
> i get:
>
> <!-- 2009-10-08 01:50:00 CEST / 1254959400 --> <row><v> 1.4980000000e+01
> </v><v> 9.5716666667e+00 </v></row>
> <!-- 2009-10-08 01:55:00 CEST / 1254959700 --> <row><v> 3.8149000000e+02
> </v><v> 7.0007666667e+02 </v></row>
> <!-- 2009-10-08 02:00:00 CEST / 1254960000 --> <row><v> 2.8804000000e+02
> </v><v> 5.3001333333e+02 </v></row>
> <!-- 2009-10-08 02:05:00 CEST / 1254960300 --> <row><v> 2.8804000000e+02
> </v><v> 5.3001333333e+02 </v></row>
>
> followed by:
>
> rrdtool restore dump.xml restored.rrd
> rrdtool dump restored.rrd
>
> and I got:
>
> <!-- 2009-10-08 01:50:00 CEST / 1254959400 --> <row><v> 1.0000000000e+00
> </v><v> 9.0000000000e+00 </v></row>
> <!-- 2009-10-08 01:55:00 CEST / 1254959700 --> <row><v> 3.0000000000e+00
> </v><v> 7.0000000000e+00 </v></row>
> <!-- 2009-10-08 02:00:00 CEST / 1254960000 --> <row><v> 2.0000000000e+00
> </v><v> 5.0000000000e+00 </v></row>
> <!-- 2009-10-08 02:05:00 CEST / 1254960300 --> <row><v> 2.0000000000e+00
> </v><v> 5.0000000000e+00 </v></row>
>
> I tested this with 1.3.1 (Lenny) and 1.3.8 (Squeeze). I also tried
> "--no-header" and/or "--range-check", but still the same.
>
> Any ideas?
>
> Thanks a lot,
> Fabian
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20091020/a1186c43/attachment.pgp
More information about the rrd-users
mailing list