OpenWrt Forum Archive

Topic: RRDtool usage

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I did so far this here:   http://wiki.openwrt.org/doc/howto/stati … d#examples
Installed: collectd-mod-rrdtool - 4.10.2-2 and rrdtool - 1.2.30-1  on OpenWrt trunk.

Now, time for some graphs:

# rrdtool graph if_packets.png if_packets.rrd

ERROR: Could not make sense out of 'if_packets.rrd'

Anybody some tips? The rrd-files are made and updates by collectd-mod-rrdtool. Should this be the problem?

I (think) I am using this:  http://linux.die.net/man/1/rrdgraph

Thx, I must have oversighted the particular page. But, uh, isn't there an easier way?
For this test, I (think) have only bytes/bits or number of packet at the timepoint of collection. I expected there be some defaults...

Why does everything have to be so cryptic?


EDIT: How do I find out, what exactly is written to the rrd-files? No point in guessing.

EDIT2:  Found here something:  http://www.msxfaq.de/tools/rrdtool.htm    rrdtool dump if_packets.rrd

(Last edited by Orca on 18 Feb 2011, 16:33)

Easier way to do what exactly?

Draw me pictures of the packets, bytes transmitted (and received) over the pppoe interface.

Here http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html they talk about adding values, but that should not be necessary!
I want a simple curve-diagram: Simply take the time to the x-achsis and the second value to the y-achsis.
Ok, In this case, if_packets.rrd has two rows of values. Two DS (datasources). I wonder what they represent, maybe transmitted and dropped? In that case, draw a second line (curve) from the second values.


Of course in the end, I want some pie charts, but I do not expect that to be easy. First let me get ONE graph. A simple one.

I want something like this HowTo:  http://wiki.openwrt.org/doc/howto/netfi … figuration

rrdtool graph test.png "some options I think I do understand"\

Then comes the part, i do not understand:

DEF:???=test.rrd:???:AVERAGE

I do not get it. I simply want to apply the time-data as x-achsis and the actual data (amount of bytes or number of packets or number of dropped packets) to the y-achsis. How difficult can this be?


http://www.hackerwiki.org/index.php/Mon … it_RRDTool

The discussion might have continued from here.