Import Nagios rrd Files

67 views
Skip to first unread message

Stephan Weck

unread,
Feb 6, 2017, 10:08:00 AM2/6/17
to rrd4j-discuss
I am trying to handle rrd Files created by the Nagios monitoring tool.

I am pretty new in this whole topic and i am not sure if this is a dumb question but is there any chance that i can read rrd Files created from Nagios?

Please find attached an example rrd File and the XML file which describes probably the content of the rrd file.

Currently i get the following error when trying to load the file in an RrdDb:
java.io.IOException: Invalid file header. File [/private/tmp/ssh.rrd] is not a RRD4J RRD file

This is obviously true but maybe someone can help me with this topic.

My final goal is to generate a graph for this xml and rrd file.

thx for your support.
SSH_time.rrd
SSH.xml

Fabrice Bacchella

unread,
Feb 6, 2017, 10:53:25 AM2/6/17
to rrd4j-...@googlegroups.com
rrd files from nagios are comming for rrdtool, and they are not compatible with rrd4j.

You should have a look to:




--
You received this message because you are subscribed to the Google Groups "rrd4j-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rrd4j-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<SSH_time.rrd><SSH.xml>

Stephan Weck

unread,
Feb 8, 2017, 8:04:25 AM2/8/17
to rrd4j-discuss
Hi Fabrice,

thx for your reply.
Now i can open the rrd without an error but i am still "too stupid" to generate the image with this information :-(
I truely don't want to bother you with this probably simple stuff but i am afraid that i do not exactly understand how a rrd file works.

Attached in this post you find a rrd file and a xml description exported from Nagios.
With this info i want to generate a png image file to show it in an web application.

What i do not understand is - do i need the information from the xml file to generate the image or is everything needed to generated an image included in the rrd file?

Maybe you can post a few code snippets how to generate the image in this concrete example?

Thx very much and sorry for my inexperience

kind regards

Stephan

Fabrice Bacchella

unread,
Feb 24, 2017, 5:24:01 PM2/24/17
to rrd4j-...@googlegroups.com
I wrote a simple doc about using rrdtool's rrd, I hope it helps:

Reply all
Reply to author
Forward
0 new messages