<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
p.BalloonText, li.BalloonText, div.BalloonText
        {mso-style-name:"Balloon Text";
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I’m using rrdtool 1.3.8 on CentOS 6.3 64 bits.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I attached the xml file with this mail but it is too large.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The commands I used are simple :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Restore : rrdtool restore Disk_Space_C.rrd.xml Disk_Space_C.rrd<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Dump : rrdtool dump Disk_Space_C.rrd Disk_Space_C.rrd.xml2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Then compare the .xml with the .xml2 and notice that the values are modified.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The first xml file was done on a 32 bit machine, and I think with rrdtool 1.4.4.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Note after composing : <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The 1.3.8 version seems buggy with the dump/restore.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks for your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Mickael GARNIER | Pôle Projets<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>PENTASONIC (<a href="http://www.pentasonic.net">http://www.pentasonic.net</a>)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>10 rue du petit Chatelier - CS 50324 - 44303 Nantes Cedex 3<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Standard : +33 (0)2 40 89 89 30 | Mobile : +33 (0)6 52 17 19 44<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>------------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Steve Shipway [mailto:s.shipway@auckland.ac.nz] <br><b>Envoyé :</b> jeudi 15 novembre 2012 00:32<br><b>À :</b> Mickael GARNIER; rrd-users@lists.oetiker.ch<br><b>Objet :</b> RE: Pb with unit when dump and restore on the same server<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>This looks weird and not at all what should happen. Doing a restore followed by a dump should result in an identical XML file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='color:#1F497D'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span lang=EN-NZ style='color:#1F497D'>Steve Shipway<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-NZ style='font-size:10.0pt;color:#1F497D'>ITS Unix Services Design Lead<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:10.0pt;color:#1F497D'>University of Auckland, New Zealand<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:10.0pt;color:#1F497D'>Floor 1, 58 Symonds Street, Auckland<o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-NZ style='font-size:10.0pt;color:#595959'>Phone: +64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-NZ style='font-size:10.0pt;color:#595959'>DDI: +64 (0)9 924 6487<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-NZ style='font-size:10.0pt;color:#595959'>Mobile: +64 (0)21 753 189<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-NZ style='font-size:10.0pt;color:#595959'>Email: <a href="mailto:s.shipway@auckland.ac.nz"><span style='color:#595959'>s.shipway@auckland.ac.nz</span></a><o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-GB style='font-size:18.0pt;font-family:Webdings;color:green'>P</span><span lang=EN-GB style='color:blue'> </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green'>Please consider the environment before printing this e-mail</span><span lang=EN-GB style='color:blue'> </span><span lang=EN-GB style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:navy'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch">rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</a> [<a href="mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch">mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch</a>] <b>On Behalf Of </b>Mickael GARNIER<br><b>Sent:</b> Thursday, 15 November 2012 2:17 a.m.<br><b>To:</b> <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br><b>Subject:</b> [rrd-users] Pb with unit when dump and restore on the same server<br><b>Importance:</b> High<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I have a problem with rrdtool dump and restore and the same server (pb was first detected also when converting from 32b to 64b).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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 :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <database><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:13:00 CET / 1352718780 --> <row><v> 7.1210000000e+03 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:14:00 CET / 1352718840 --> <row><v> 7.1210000000e+03 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:15:00 CET / 1352718900 --> <row><v> 7.1210000000e+03 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:16:00 CET / 1352718960 --> <row><v> 7.1210000000e+03 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </span><!-- 2012-11-12 12:17:00 CET / 1352719020 --> <row><v> 7.1210000000e+03 </v></row><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>The values are in MB, and there is 7121 MB free on the server.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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 :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <database><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:13:00 CET / 1352718780 --> <row><v> 7.0000000000e+00 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:14:00 CET / 1352718840 --> <row><v> 7.0000000000e+00 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:15:00 CET / 1352718900 --> <row><v> 7.0000000000e+00 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <!-- 2012-11-12 12:16:00 CET / 1352718960 --> <row><v> 7.0000000000e+00 </v></row><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> </span><!-- 2012-11-12 12:17:00 CET / 1352719020 --> <row><v> 7.0000000000e+00 </v></row><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>My problem is that in the new file, the values in the new dump are not the same unit.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>In the first file, the unit is MB. In the second file, it seems to be in GB.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The RRD files are coming from PNP4NAGIOS.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Can you explain me why the units are different ? I expect the second file would be the same as the first !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks for your answer.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p><p class=MsoNormal>------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>Mickael GARNIER | Pôle Projets<o:p></o:p></p><p class=MsoNormal>10 rue du petit Chatelier - CS 50324 - 44303 Nantes Cedex 3<o:p></o:p></p><p class=MsoNormal>Standard : +33 (0)2 40 89 89 30 | Mobile : +33 (0)6 52 17 19 44<o:p></o:p></p><p class=MsoNormal>------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>