<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=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<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;}
/* 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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
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=DA link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US>Hi<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> I’m having a very strange issue with
a RRD database…<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>The database is created using:<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> rrdtool create file.rrd -b
`date +%s` -s 300 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:BackupDisk:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoBackupDisk:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:BackupVTape:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoBackupVTape:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:BackupTape:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoBackupTape:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:ReclaimVTape:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
DS:NoReclaimVTape:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:ReclaimTape:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoReclaimTape:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:ReclaimCopy:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoReclaimCopy:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:Migration:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoMigration:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:Expiration:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoExpiration:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:FullDbBackup:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
DS:NoFullDbBackup:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:IncrDbBackup:GAUGE:600:0:10
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
DS:NoIncrDbBackup:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:Export:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoExport:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:Import:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> DS:NoImport:GAUGE:600:0:10 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> RRA:AVERAGE:0.5:1:600 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> RRA:AVERAGE:0.5:6:700 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> RRA:AVERAGE:0.5:24:775 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> RRA:AVERAGE:0.5:288:800 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> </span>RRA:MAX:0.5:1:600 \<o:p></o:p></p>
<p class=MsoNormal> RRA:MAX:0.5:6:700 \<o:p></o:p></p>
<p class=MsoNormal> RRA:MAX:0.5:24:775 \<o:p></o:p></p>
<p class=MsoNormal> <span lang=EN-US>RRA:MAX:0.5:288:800<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>This seem to be OK…. When I update
the RRD, I use:<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>rrdtool update
/var/www/html/tsm/rrd/$1-processes.rrd -t
BackupDisk:NoBackupDisk:BackupVTape:NoBackupVTape:BackupDisk:NoBackupDisk:ReclaimVTape:NoReclaimVTape:ReclaimTape:NoReclaimTape:ReclaimCopy:NoReclaimCopy:Migration:NoMigration:Expiration:NoExpiration:FullDbBackup:NoFullDbBackup:IncrDbBackup:NoIncrDbBackup:Export:NoExport:Import:NoImport
N:0:1:0:1:1:0:0:1:0:1:0:1:0:1:0:1:0:1:0:1:0:1:0:1<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>But when doing a rrdtool dump of the RRD
file, I search for the data I insert – and now it looks like:<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> <!-- 2010-06-24
17:20:00 CEST / 1277392800 --> <row><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00
</v><v> 1.0000000000e+00 </v><v> NaN </v><v>
NaN </v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00
</v><v> 0.0000000000e+00 </v><v> 1.0000000000e+00 </v><v>
0.0000000000e+00 </v><v> 1.0000000000e+00 </v><v>
0.0000000000e+00 </v><v> 1.0000000000e+00 </v><v>
0.0000000000e+00 </v><v> 1.0000000000e+00 </v></row><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>So – for some weird reason the value
for BackupDisk is set to 1 in the RRD file – even though I specified the
order and the value – so that it actually should be 0 … and
vice-versa for the value NoBackupDisk<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>What am I doing wrong ? Or is this a bug ??<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><span lang=EN-US>Brian<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>