Best Practice: Updating Cacti from 0.8.6d to 0.8.6h

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
tkdan235
Posts: 17
Joined: Thu Apr 27, 2006 6:46 pm
Location: Sacramento, Ca

Best Practice: Updating Cacti from 0.8.6d to 0.8.6h

Post by tkdan235 »

Running on FreeBSD, what is the best method for upgrading cacti to the latest version? Can anybody share their experience with updating and anything extra that people should know about?

I have another thread open in which I am running into some problem updating:
http://forums.cacti.net/viewtopic.php?t=13411

I am curious at this point just to know what exactly the best methods for updating are. :o
tkdan235
Posts: 17
Joined: Thu Apr 27, 2006 6:46 pm
Location: Sacramento, Ca

to answer my own question...

Post by tkdan235 »

Chapter 4. Upgrading Cacti

1.

Backup the old Cacti database.

shell> mysqldump -l --add-drop-table cacti > mysql.cacti

Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup.
2.

Backup the old Cacti directory.

shell> mv cacti cacti_old

3.

Extract the distribution tarball.

shell> tar xzvf cacti-version.tar.gz

4.

Rename the new Cacti directory to match the old one.

shell> mv cacti-version cacti

5.

Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.

$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

6.

Copy the *.rrd files from the old Cacti directory.

shell> cp cacti_old/rra/* cacti/rra/

7.

Copy any custom scripts from the old Cacti directory.

shell> cp cacti_old/scripts/* cacti/scripts/

8.

Set the appropriate permissions on Cacti's directories for graph/log generation. You should execute these commands from inside Cacti's directory to change the permissions.

shell> chown -R cactiuser rra/ log/

(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
9.

Point your web browser to:

http://your-server/cacti/

Follow the on-screen instructions so your database can be updated to the new version.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests