Discussion:
[rrd-users] Can't graph anything from populated rrd
(too old to reply)
Victor Mercado
2014-07-07 19:34:18 UTC
Permalink
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.
Alex van den Bogaerdt
2014-07-07 19:56:48 UTC
Permalink
Post by Victor Mercado
$ 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)​
You get from RRDtool what you ask for: nothing.

Please work your way through the tutorials.
Simon Hobson
2014-07-07 21:20:01 UTC
Permalink
Post by Victor Mercado
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')
You have 3 redundant RRAs there - 1440 is a subset of 3600, and they all consolidate the same way (ie nothing as it's one PDP (Primary Data point) per CDP (Consolidated Data Point).
Post by Victor Mercado
$ rrdtool graph -j <rrd filename> > graph.png
Unfortunately, I don't get any output.
You won't because that doesn't tell RRD to produce anything.
See :
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html
http://www.vandenbogaerdt.nl/rrdtool/

Loading...