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

Steve Shipway s.shipway at auckland.ac.nz
Thu Nov 15 00:32:19 CET 2012


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:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Mickael GARNIER
Sent: Thursday, 15 November 2012 2:17 a.m.
To: rrd-users at 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

------------------------------------------------------------------

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20121114/e0687c92/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20121114/e0687c92/attachment-0001.bin 


More information about the rrd-users mailing list