<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">Hello,<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">I have read the solution for the following problem, and even have perl version 6&#8230;. <o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">But still the same problem is occurring<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">Can someone help me over it&#8230;.. <o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">I'm new with RRDtool and here is my problem :<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">############################<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">#!/usr/bin/perl -w<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">use lib qw( /udd/sri/malartic/local/sunOS/RRD/lib/perl );<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">use RRDs;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">my %hash ;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">RRDs::create (&quot;test.rrd&quot;, &quot;--start&quot;, &quot;1023654125&quot;, &quot;--step&quot;, &quot;300&quot;,<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&quot;DS:mem:GAUGE:600:0:671744&quot;, &quot;RRA:AVERAGE:0.5:12:24&quot;);<o:p></o:p></span></font></pre>
<pre><font size="4" color="blue" face="Courier New"><span style="font-size:14.0pt;color:blue">RRDs::info (&quot;test.rrd&quot;);<o:p></o:p></span></font></pre>
<pre><font size="4" color="blue" face="Courier New"><span style="font-size:14.0pt;color:blue">$hash = RRDs::info &quot;test.rrd&quot;;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">foreach my $key (keys %$hash){<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp; if (defined $$hash{$key}) {<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print </span></font><font size="4" color="blue"><span style="font-size:14.0pt;color:blue">&quot;$key = $$hash{$key}\</span></font>n&quot;;<o:p></o:p></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp; } else {<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;$key\n&quot;;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">}<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">############################<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">prints (notice the strange values for step, heartbeat, rows, etc.) :<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].type = GAUGE<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rrd_version = 0001<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].pdp_per_row = 51539607552<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].max = 671744<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].value = 0<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; last_update = 4396560989290496000<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; filename = test.rrd<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].rows = 103079215104<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].minimal_heartbeat = 2576980377600<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].min = 0<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].xff = 0.5<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cdp_prep[0].unknown_datapoints = 17179869184<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].unknown_sec = 536870912000<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cf = AVERAGE<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cdp_prep[0].value<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].last_ds = UNKN<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; </span></font><b><font size="4" color="blue"><span style="font-size:14.0pt;color:blue;font-weight:bold">step = 1288490188800<o:p></o:p></span></font></b></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">-----------------------<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">while, with the same test.rrd file,&nbsp; from command shell, i have :<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; atoll{566}$ rrdtool info test.rrd<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; filename = &quot;test.rrd&quot;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rrd_version = &quot;0001&quot;<o:p></o:p></span></font></pre>
<pre><b><font size="4" color="blue" face="Courier New"><span style="font-size:14.0pt;color:blue;
font-weight:bold">&nbsp;&nbsp;&nbsp; step = 300<o:p></o:p></span></font></b></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; last_update = 1023654125<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].type = &quot;GAUGE&quot;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].minimal_heartbeat = 600<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].min = 0.0000000000e&#43;00<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].max = 6.7174400000e&#43;05<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].last_ds = &quot;UNKN&quot;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp; &nbsp;ds[mem].value = 0.0000000000e&#43;00<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; ds[mem].unknown_sec = 125<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cf = &quot;AVERAGE&quot;<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].rows = 24<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].pdp_per_row = 12<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].xff = 5.0000000000e-01<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cdp_prep[0].value = <st1:place w:st="on">NaN</st1:place><o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt">&nbsp;&nbsp;&nbsp; rra[0].cdp_prep[0].unknown_datapoints = 4<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></font></pre>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="3">&quot;DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or
 used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering,
 or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.&quot;<br>
</font>
</body>
</html>