0% found this document useful (0 votes)
8 views2 pages

Upgrading - Cacti

Uploaded by

Absolute Savant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Upgrading - Cacti

Uploaded by

Absolute Savant
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

manual:087:1_installation.3_upgrading - Cacti Docs http://docs.cacti.net/manual:087:1_installation.

3_upgrading#upgrading_cacti

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 database type, name, host, user and password for your Cacti
configuration.

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

/* load up old style plugins here */


$plugins = array();
//$plugins[] = 'thold';

/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/cacti/";

/* Default session name - Session name must contain alpha characters */


#$cacti_session_name = "Cacti";

The $plugins array is required for using the Plugin Architecture (PIA) only. For legacy plugins, those that must be
installed in global.php, we have moved the plugins array out of global.php and into config.php. This was done to
insure that global.php remains pristine. It is a file that is not intended to be modified, so with the PIA installed, you
should not have to.
The variable “URL_PATH” has also been moved from global.php to config.php for the same reason as the plugins
array. For those of you upgrading from very old Plugin Architectures you should know that in the past, we
attempted to “detect” this path. However, the process was not reliable. Therefore, you have to specify that path in

1 of 2 1/27/2012 1:41 AM
manual:087:1_installation.3_upgrading - Cacti Docs http://docs.cacti.net/manual:087:1_installation.3_upgrading#upgrading_cacti

config.php.

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

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

7. Copy any relevant custom scripts from the old Cacti directory. Some script are updated between versions.
Therefore, make sure you only over write if the scripts either don't exist or are newer than the distribution's.

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

8. Copy any relevant custom resource XML files from the old Cacti directory. Some resource XML files are updated
between versions. Therefore, make sure you only over write if the XML files either don't exist or are newer than the
distribution's.

shell> cp -u -R cacti_old/resource/* cacti/resource/

9. 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.)

10. Apply Patches


11. Point your web browser to:

http://your-server/cacti/

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

1_installation.2_install_windows.9_apply_patches manual 1_installation.9_pia

2 of 2 1/27/2012 1:41 AM

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy