# Backup the old Cacti database.
shell> mysqldump -ladd-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.
# Backup the old Cacti directory.

shell> mv cacti cacti_old

# Extract the distribution tarball.

shell> tar xzvf cacti-version.tar.gz

# Rename the new Cacti directory to match the old one.

shell> mv cacti-version cacti

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

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

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

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

# 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/

# 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/

# 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.)
# Point your web browser to:

http://your-server/cacti/

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

Suroboy Upgrading Cacti is posted by Suroboy under Debian Linux, Networking. If you love it, you might consider to subscribe to our feed, follows me on Twitter, or receive our latest post via email.
Suroboy While you're here, why don't you see the other posts which are related to Upgrading Cacti like No related posts, -.
Suroboy

If you found this page useful, consider linking to it.
Simply copy and paste the code below into your web site (Ctrl+C to copy)
It will look like this: Upgrading Cacti

Suroboy
Do you want to RE-PUBLISH this article in your website?
Simply copy and paste the code below into your web site form (Ctrl+C to copy)

Comment Form

Archives

Translation

  • Translation
    EnglishAfrikaansBahasa IndonesiaCatalàCymraegDeutschEesti keelEspañolFrançaisGaeilgeGalegoHrvatskiItalianoKiswahiliKreyòl ayisyenMaltiNederlandsNorskPolskiPortuguêsRomânăShqipSuomiTagalogTiếng ViệtTürkçeazərbaycan dilibahasa Melayudanskeuskaralatviešu valodalietuvių kalbamagyarslovenčinaslovenščinasvenskaíslenskačeštinaΕλληνικάБеларускаяБългарскиРусскийУкраїнськамакедонски јазиксрпски језикՀայերենייִדישעבריתاردوالعربيةفارسیहिन्दी; हिंदीภาษาไทยქართული中文(漢字)中文(简体)日本語우리말
     Edit Translation
    by Transposh

Get Recent Updates

Enter your email:

Follow Me on Twitter

Buy me a cup of tea

Do you like my free service?
Why not buy me a cup of tea?
PayPal - The safer, easier way to pay online.

Links