[rrd-users] Can't graph anything from populated rrd

Victor Mercado victor.mercado at ahold.com
Mon Jul 7 21:34:18 CEST 2014


Hi all,

I'm unable to plot the data in my rrd db.

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:

rrdtool.create('%s' % rrd_input_file, '--start', 'now', '--step', '120',
                       'DS:Jitter:GAUGE:5000:U:U',
                       'DS:PacketLossPerc:GAUGE:5000:U:U',
                       'RRA:AVERAGE:0.5:1:1440',
                       'RRA:AVERAGE:0.5:1:3600',
                       'RRA:AVERAGE:0.5:1:1440',
                       'RRA:AVERAGE:0.5:1:3600')

I update the rrd database using python-rrd with the following syntax:

for row in iperf_input:
    if len(row) == 14:
          epoch = str(time.mktime(time.strptime(row[0], "%Y%m%d%H%M%S")))
           rrdtool.update('%s' % rrd_input_file, '%s:%s:%s' %(epoch,
row[9],row[12]))

If I execute "rrdtool dump <rrd filename>" in a terminal window, I can see
the data.  The following is an example of the output:

<!-- 2014-07-07 15:22:00 EDT / 1404760920 -->
<row><v>5.3978333333e-01</v><v>0.0000000000e+00</v></row>
<!-- 2014-07-07 15:24:00 EDT / 1404761040 -->
<row><v>4.4520000000e-01</v><v>0.0000000000e+00</v></row>
</database>
</rra>
</rrd>


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:

$ rrdtool graph -j <rrd filename> > graph.png

Unfortunately, I don't get any output.

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?

Victor
​ (rrd-beginner)​

-- 
This email and any attachments may contain information that is proprietary,
confidential and/or privileged and for the sole use of the intended 
recipients(s)
only.
If you are not the intended recipient, please notify the sender by return
email and delete all copies of this email and any attachments. Ahold and/or 
its
subsidiaries shall neither be liable for the inaccurate or incomplete 
transmission
of the information contained in this email or any attachments, nor for any 
delay
in its receipt. To the extent this email is intended to create any legal 
obligation,
the obligation shall bind only the contracting entity and not any other 
entity within
the Ahold Group.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20140707/1dea27c6/attachment.htm 


More information about the rrd-users mailing list