Update Cacti

How to upgrade Cacti to the latest version

Here we are assuming that the current installation in in the directory ‘https’ and the new version we are installing is cacti-1.1.3

First of all download the latest version:

http://www.cacti.net/downloads/cacti-latest.tar.gz

Unpack it:

tar zxvf cati-latest.tar.gz

Edit the config file to set the database access correctly:

cd cacti-1.1.3/include

vim config.php

  1. $database_type = "mysql";
    $database_default = "cacti";
    $database_hostname = "localhost";
    $database_username = "cactiuser";
    $database_password = "cacti";
    
  2. $url_path = '/';
    

Copy the *.rrd files from the old Cacti directory to the new one.

cp -rp https/rra/* cacti-1.1.3/rra/

Copy any relevant custom scripts from the old Cacti directory to the new one.

cp -u https/scripts/* cacti-1.1.3/scripts/

Copy any relevant custom resource XML files from the old Cacti directory to the new one.

cp -u -R https/resource/* cacti-1.1.3/resource/

Set the appropriate permissions on Cacti’s directories for graph/log generation.

cd cacti-1.1.3
chown -R cactiuser rra/ log/
cd ..

Move your old installation away:

mv https https-old

Move your new installation in:

mv cacti-1.1.3 https

Point your web browser to your cacti URL and follow the instructions.