Hello,

I actually ended up using rrdtool fetch in the end, which worked perfectly. I was able to get the hang of it pretty easily. 

Thanks for the feedback
On Tue, Jun 27, 2017 at 5:54 PM Adam Armstrong <adama@memetic.org> wrote:
Why are you using addrra? Or even using rrdtoolx at all?

You need to read the documentation on rrdtool's export functionality on the rrdtool site. It's not difficult to get data out of RRD, but it is fiddly and time consuming.

adam.

On 27/06/2017 16:11:09, austin wonderly <lacrosse1991@gmail.com> wrote:

Hello,

What would be the correct way to extract rrd data for a certain period of time (last 7 days for example). I'm trying to extract data for the following graph http://imgur.com/a/Gw9y2, although when I open up the data in excel, I'm not able to get anything of use. 

I used this command to produce an RRD export first:

/opt/observium/scripts/rrdtoolx.py addrra netstats-udp.rrd /tmp/testrrd

after which I used:

rrdtool dump /tmp/testrrd > /tmp/rrd.xml

to get the file into an xml format, and finally I imported the xml into excel.

I'm trying to put together a list of time stamps and their appropriate data points, so for example:

time1 : 22 errors
time2: 10 errors
time3: 30 errors
....

Would it even be possible to extract this kind of data from the RRD files? 

Thanks for your help,
Austin

_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium