[rrd-users] Pb with unit when dump and restore on the same server

Mickael GARNIER Mickael.Garnier at pentasonic.net
Wed Nov 14 14:16:35 CET 2012


Hi,

I have a problem with rrdtool dump and restore and the same server (pb was first detected also when converting from 32b to 64b).

When I dump a RRD file made by PNP4NAGIOS Disk_space_C.rrd with the command 'rrdtool dump Disk_space_C.rrd Disk_space_C.rrd.xml', I get an XML file (Disk_space_C.rrd .xml) with values like that :
                               <database>
                                               <!-- 2012-11-12 12:13:00 CET / 1352718780 --> <row><v> 7.1210000000e+03 </v></row>
                                               <!-- 2012-11-12 12:14:00 CET / 1352718840 --> <row><v> 7.1210000000e+03 </v></row>
                                               <!-- 2012-11-12 12:15:00 CET / 1352718900 --> <row><v> 7.1210000000e+03 </v></row>
                                               <!-- 2012-11-12 12:16:00 CET / 1352718960 --> <row><v> 7.1210000000e+03 </v></row>
                                               <!-- 2012-11-12 12:17:00 CET / 1352719020 --> <row><v> 7.1210000000e+03 </v></row>
The values are in MB, and there is 7121 MB free on the server.

Then, I restore the XML file with the command 'rrdtool restore Disk_space_C.rrd.xml Disk_space_C.rrd', and dump it another time with the same command as above, and get another XML file with values like that :
                                <database>
                                               <!-- 2012-11-12 12:13:00 CET / 1352718780 --> <row><v> 7.0000000000e+00 </v></row>
                                               <!-- 2012-11-12 12:14:00 CET / 1352718840 --> <row><v> 7.0000000000e+00 </v></row>
                                               <!-- 2012-11-12 12:15:00 CET / 1352718900 --> <row><v> 7.0000000000e+00 </v></row>
                                               <!-- 2012-11-12 12:16:00 CET / 1352718960 --> <row><v> 7.0000000000e+00 </v></row>
                                               <!-- 2012-11-12 12:17:00 CET / 1352719020 --> <row><v> 7.0000000000e+00 </v></row>

My problem is that in the new file, the values in the new dump are not the same unit.
In the first file, the unit is MB. In the second file, it seems to be in GB.
The RRD files are coming from PNP4NAGIOS.

Can you explain me why the units are different ? I expect the second file would be the same as the first !
Indeed, with the new restore RRD database, I cannot have a good graph because the new values inserted by pnp4nagios come again in MB. So I have old values at 7 and new at 7121.

Thanks for your answer.

Regards,
------------------------------------------------------------------
Mickael GARNIER | Pôle Projets
10 rue du petit Chatelier - CS 50324 - 44303 Nantes Cedex 3
Standard : +33 (0)2 40 89 89 30 | Mobile : +33 (0)6 52 17 19 44
------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20121114/76a3966e/attachment.htm 


More information about the rrd-users mailing list