Hi, I'm using rrdtool 1.3.8 on CentOS 6.3 64 bits. I attached the xml file with this mail but it is too large. The commands I used are simple : Restore : rrdtool restore Disk_Space_C.rrd.xml Disk_Space_C.rrd Dump : rrdtool dump Disk_Space_C.rrd Disk_Space_C.rrd.xml2
Then compare the .xml with the .xml2 and notice that the values are modified. The first xml file was done on a 32 bit machine, and I think with rrdtool 1.4.4. Note after composing : I found the problem : it is rrdtool 1.3.8 ! I installed the 1.4.7 on my centos with rpmforge extra, and didn't notice the pb again. The 1.3.8 version seems buggy with the dump/restore. Thanks for your help. Regards, ------------------------------------------------------------------ Mickael GARNIER | Pôle Projets PENTASONIC (http://www.pentasonic.net) 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 ------------------------------------------------------------------ De : Steve Shipway [mailto:s.ship...@auckland.ac.nz] Envoyé : jeudi 15 novembre 2012 00:32 À : Mickael GARNIER; rrd-users@lists.oetiker.ch Objet : RE: Pb with unit when dump and restore on the same server This looks weird and not at all what should happen. Doing a restore followed by a dump should result in an identical XML file. Can you give the exact list of commands you use to duplicate this, and maybe a copy of the initially dumped XML file if possible, so someone can try to duplicate? Also, any info about the server on which this is occurring (OS, version of RRDTool, 32/64bits etc) would help. Steve ________________________________ Steve Shipway ITS Unix Services Design Lead University of Auckland, New Zealand Floor 1, 58 Symonds Street, Auckland Phone: +64 (0)9 3737599 ext 86487 DDI: +64 (0)9 924 6487 Mobile: +64 (0)21 753 189 Email: s.ship...@auckland.ac.nz<mailto:s.ship...@auckland.ac.nz> P Please consider the environment before printing this e-mail From: rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch<mailto:rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch> [mailto:rrd-users-bounces+s.shipway=auckland.ac...@lists.oetiker.ch] On Behalf Of Mickael GARNIER Sent: Thursday, 15 November 2012 2:17 a.m. To: rrd-users@lists.oetiker.ch<mailto:rrd-users@lists.oetiker.ch> Subject: [rrd-users] Pb with unit when dump and restore on the same server Importance: High 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 ------------------------------------------------------------------
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users