Cactistoric-0.8.5-0.01 for Cacti

Revision History
Revision 0.01February 8th, 2004Bruno Prigent
First version
Revision 0.02February 12th, 2004Bruno Prigent
Corrected the script to resize RRAs.

Table of Contents

Preface
1. Installation
2. Configuration
3. Use

Preface

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.01) is built to be used with Cacti-0.8.5

Cactistoric is distributed under GPL licence.

This document was writen using docbook.

Chapter 1. Installation

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 Console->Data Sources->RRA's 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

Chapter 2. Configuration

Cactistoric doesn't need specific configuration.

Chapter 3. Use

To use Cactistoric, select the graphs tab then click on the graph of your choice. Click on the [zoom] link bellow the first graph. Adjust the parameters as you wish and click the View button.