<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm unable to plot the data in my rrd db.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I Installed rrdtool and python-rrd for python 2.7 in a Ubuntu 14.04 os (inside a virtualbox 32-bit machine). I created a rrd database using python-rrd with the following syntax:<br>
</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font size="1">rrdtool.create('%s' % rrd_input_file, '--start', 'now', '--step', '120',</font></div>
<div class="gmail_default"><font size="1"> 'DS:Jitter:GAUGE:5000:U:U',</font></div><div class="gmail_default"><font size="1"> 'DS:PacketLossPerc:GAUGE:5000:U:U',</font></div>
<div class="gmail_default"><font size="1"> 'RRA:AVERAGE:0.5:1:1440',</font></div><div class="gmail_default"><font size="1"> 'RRA:AVERAGE:0.5:1:3600',</font></div>
<div class="gmail_default"><font size="1"> 'RRA:AVERAGE:0.5:1:1440',</font></div><div class="gmail_default"><font size="1"> 'RRA:AVERAGE:0.5:1:3600')</font></div>
<div style="font-size:small"><br></div></div><div class="gmail_default" style="font-size:small">I update the rrd database using python-rrd with the following syntax:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default"><font size="1">for row in iperf_input:<br></font></div><div class="gmail_default" style><div class="gmail_default" style><font size="1"> if len(row) == 14:</font></div><div class="gmail_default" style>
<font size="1"> epoch = str(time.mktime(time.strptime(row[0], "%Y%m%d%H%M%S")))</font></div><div class="gmail_default" style><font size="1"> rrdtool.update('%s' % rrd_input_file, '%s:%s:%s' %(epoch, row[9],row[12]))</font></div>
</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If I execute "rrdtool dump <rrd filename>" in a terminal window, I can see the data. The following is an example of the output:<br>
</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default"><font size="1"><span class="" style="white-space:pre">                        </span><!-- 2014-07-07 15:22:00 EDT / 1404760920 --> <row><v>5.3978333333e-01</v><v>0.0000000000e+00</v></row></font></div>
<div class="gmail_default"><font size="1"><span class="" style="white-space:pre">                        </span><!-- 2014-07-07 15:24:00 EDT / 1404761040 --> <row><v>4.4520000000e-01</v><v>0.0000000000e+00</v></row></font></div>
<div class="gmail_default"><font size="1"><span class="" style="white-space:pre">                </span></database></font></div><div class="gmail_default"><font size="1"><span class="" style="white-space:pre">        </span></rra></font></div>
<div class="gmail_default"><font size="1"></rrd></font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
Unfortunately, I'm unable to graph the data. I'm trying to create a simple graph without any optional parameters just to see something. The syntax is a follows:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default" style><font size="1">$ rrdtool graph -j <rrd filename> > graph.png</font><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
Unfortunately, I don't get any output.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I would like to see a graph of my 2 metrics (Jitter and PacketLossPerc) and the two predefined averages for each of the metrics. Can someone help?</div>
<div class="gmail_default" style="font-size:small"><br></div></div><div><div dir="ltr"><div>Victor<div class="gmail_default" style="font-size:small;display:inline"> (rrd-beginner)</div></div></div></div>
</div>
<br>
<div>This email and any attachments may contain information that is proprietary,</div><div>confidential and/or privileged and for the sole use of the intended recipients(s)</div><div>only.</div><div>If you are not the intended recipient, please notify the sender by return</div><div>email and delete all copies of this email and any attachments. Ahold and/or its</div><div>subsidiaries shall neither be liable for the inaccurate or incomplete transmission</div><div>of the information contained in this email or any attachments, nor for any delay</div><div>in its receipt. To the extent this email is intended to create any legal obligation,</div><div>the obligation shall bind only the contracting entity and not any other entity within</div><div>the Ahold Group.</div>