Xymon Mailing List Archive search

RRA definitions for rrds?

4 messages in this thread

list Bruce Lysik · Mon, 28 Feb 2005 16:09:52 -0800 ·
Hi,

So I've gotten some new data being graphed in Hobbit.  However, I've got a request to set it up in such a way that I don't lose granularity.  Basically I want to be able to define the rrd with 2 years worth of data points.  Is such a thing possible in Hobbit?

--
Bruce Z. Lysik  <user-4e63a10f8934@xymon.invalid>
Operations Engineer
list Henrik Størner · Tue, 1 Mar 2005 08:00:33 +0100 ·
quoted from Bruce Lysik
On Mon, Feb 28, 2005 at 04:09:52PM -0800, Bruce Lysik wrote:
So I've gotten some new data being graphed in Hobbit.  However, I've
 got a request to set it up in such a way that I don't lose
 granularity.  Basically I want to be able to define the rrd with 2
 years worth of data points.  Is such a thing possible in Hobbit?
Not right away. The Hobbit graphs are fixed at 576 data points per
period, giving you 48 hours of data for the most detailed graph.

If you must do this, you will have to code a small piece of C code
like the ones in hobbitd/larrd/ to manage your data. In each of these
modules, there is a declaration of parameters used to create the RRD
file; these are defined like this:

static char *bbgen_params[] = { "rrdcreate", rrdfn, 
			   "DS:runtime:GAUGE:600:0:U", 
			   rra1, rra2, rra3, rra4, 
			   NULL };

The "rra1", "rra2", "rra3" and "rra4" are pointers to the actual
definitions of how many data points to store and how they are averaged
out over a period; the first one is the one that holds the most
detailed data:

static char rra1[] = "RRA:AVERAGE:0.5:1:576";

So with a bit of C experience and some knowledge of how RRDtool works,
it would be possible to do. You'd need some 7 MB of storage per item
you monitor.

I'd suggest having a good read of the rrdcreate man-page.


Regards,
Henrik
list Bruce Lysik · Tue, 1 Mar 2005 15:26:47 -0800 ·
quoted from Henrik Størner
So with a bit of C experience and some knowledge of how RRDtool works,
it would be possible to do. You'd need some 7 MB of storage per item
you monitor.

I'd suggest having a good read of the rrdcreate man-page.
Thanks.  I'm looking into it.

Another question:  is it possible to specify an alternate width and height of the graphs in hobbitgraph.cfg?

--
Bruce Z. Lysik  <user-4e63a10f8934@xymon.invalid>
Operations Engineer
list Henrik Størner · Wed, 2 Mar 2005 07:47:22 +0100 ·
quoted from Bruce Lysik
On Tue, Mar 01, 2005 at 03:26:47PM -0800, Bruce Lysik wrote:
Another question: is it possible to specify an alternate width and
 height of the graphs in hobbitgraph.cfg?
It's a parameter to the rrd_graph() function called by hobbitgraph,
but not something you can change without changing the C code. If you
change it, it will probably also require changing some settings in the
zoom function.

Henrik