Copyright © 2004 Bruno Prigent
Revision History | ||
---|---|---|
Revision 0.01 | February 8th, 2004 | Bruno Prigent |
First version. | ||
Revision 0.02 | February 12th, 2004 | Bruno Prigent |
Corrected the script to resize RRAs. | ||
Revision 0.03 | April 16th, 2004 | Bruno Prigent |
Modified the Cacti release number supported by Cactistoric. |
Table of Contents
I started this project to add the historic feature to Cacti. If you are a RaXnet forum user you probably know this project as zoom_graph. With this add-on you can see what append a few days/weeks/months ago with a 5 minute accuracy. This release (0.8.5-0.04) is built to be used with Cacti-0.8.5 and Cacti-0.8.5a.
Cactistoric is distributed under GPL licence.
This document was writen using docbook.
Decompress cactistoric.tar.gz in your Cacti directory.
cd CACTI_DIR tar xvzf PATH_TO_cactistoric.tar.gz
Customize the number of row a RRA should keep. I use 17280 rows in daily RRAs to have 2 month of 5 minutes average data. In Cacti go to -> -> and modify the Row value of Daily (5 Minute Average).
Resize the already created RRAs with the command rrdtool resize. See RRDtool documentation http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdresize.html for more information. If you previously created RRAs with the Cacti default value, the RRAs to resize are 600 rows sized. The rrdtool resize allow you to know which RRAs needs to be resized. Generaly, it's RRA 0 and RRA 4, use the following command to resize them at 17280 rows.
for f in `find . -maxdepth 1 -name \*\.rrd` do echo "-- Working on $f" echo " Growing RRA 0" rrdtool resize $f 0 GROW 16680 mv resize.rrd $f echo " Growing RRA 4" rrdtool resize $f 4 GROW 16680 mv resize.rrd $f echo "Done." done