Xymon Mailing List Archive search

data in zoomed graphs

2 messages in this thread

list Paul Williamson · Thu, 17 Jan 2008 15:13:53 -0500 ·
I have been looking through the docs and know how RRDTool works, but how does the Hobbit zoom function work?  How would I modify the defaults to create RRDs where the 5 minute detail was stored for 6 months?  I can't find the place where I would modify that.  
 
As a result of modifying that, I think as long as the 5 minute resolution is stored, the zoom function would automatically pick out the 5 minute resolution and use that information to render the graph, correct?
 
Thanks,
Paul

************************************
This email may contain privileged and/or confidential information that is intended solely for the use of the addressee.  If you are not the intended recipient or entity, you are strictly prohibited from disclosing, copying, distributing or using any of the information contained in the transmission.  If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy.  This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act and the Sarbanes-Oxley Act.  You may not directly or indirectly reuse or disclose such information for any purpose other than to provide the services for which you are receiving the information.
There are risks associated with the use of electronic transmission.  The sender of this information does not control the method of transmittal or service providers and assumes no duty or obligation for the security, receipt, or third party interception of this transmission.
************************************
list Henrik Størner · Thu, 17 Jan 2008 21:45:43 +0100 ·
quoted from Paul Williamson
On Thu, Jan 17, 2008 at 03:13:53PM -0500, PAUL WILLIAMSON wrote:
I have been looking through the docs and know how RRDTool works, 
but how does the Hobbit zoom function work?  How would I modify 
the defaults to create RRDs where the 5 minute detail was stored 
for 6 months?  I can't find the place where I would modify that.  
It is hidden in the RRA parameters used when Hobbit creates the RRD
files. In the 4.3.0 version (and current snapshots) it is configurable,
but in 4.2.0 you must modify the "RRA" definitions in
hobbit-4.2.0/hobbitd/do_rrd.c

6 months = 180 days, each day is 24*60 = 1440 minutes, so for 180 days
of 5-minute details you will need 180*24*60/5 = 51840 datapoints stored.

So you would change the
   static char rra1[] = "RRA:AVERAGE:0.5:1:576";
to
   static char rra1[] = "RRA:AVERAGE:0.5:1:51840";

Note that this is only used when the rrd file is created, so if you want
to apply this to existing RRD files - e.g. to keep the data that has
been collected - you must use the "rrdtool resize"  command to modify
the existing RRD file for the new RRA definition. See the rrdtool
man-page for details.

You could delete the 12- and 48-day RRA definions since they fall within
the 180 days you now have, but that would require a bit more work with
the source code.
quoted from Paul Williamson

As a result of modifying that, I think as long as the 5 minute resolution 
is stored, the zoom function would automatically pick out the 5 minute 
resolution and use that information to render the graph, correct?
Correct.


Regards,
Henrik