Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cacti 0.8 Beginner's Guide

You're reading from   Cacti 0.8 Beginner's Guide Learn Cacti and design a robust Network Operations Center

Arrow left icon
Product type Paperback
Published in Mar 2011
Publisher Packt
ISBN-13 9781849513920
Length 348 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Thomas Urban Thomas Urban
Author Profile Icon Thomas Urban
Thomas Urban
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Cacti 0.8Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing Cacti FREE CHAPTER 2. Using Graphs to Monitor Networks and Devices 3. Creating and Using Templates 4. User Management 5. Data Management 6. Cacti Maintenance 7. Network and Server Monitoring 8. Plugin Architecture 9. Plugins 10. Threshold Monitoring with Thold 11. Enterprise Reporting 12. Cacti Automation for NOC Mobile Access / Administration Online Resources Further Information Pop Quiz Answers
Index

Time for action – upgrading Cacti


  1. Create a backup of the database:

    mysqldump –u root -p --lock-tables --add-drop-table cacti > /root/cacti_backup.sql
    
  2. This will back up the Cacti database to a file called cacti_backup.sql. You will be asked for the MySQL root password.

  3. Change to the /var/www/html directory. From http://www.cacti.net download the source of the version to which you want to upgrade.

  4. Extract the file:

    tar –xzvf cacti-0.8.7g.tar.gz
    
  5. You will have a new directory named cacti-0.8.7g.

  6. Change to the newly created directory and edit include/config.php. Change the database entries in there to match your installation.

  7. Before copying the files, you should stop the poller using the web interface. Go to the Configuration | Settings and change to the Poller tab. Disable the poller by unchecking it.

  8. Copy the files from your existing installation to the new one. Execute the following commands, replacing 0.8.x with the new version:

    cp /var/www/html/cacti/rra/* /var/www/html/cacti-0.8.x/rra/
    cp –u /var/www/html/cacti/scripts/* /var/www/html/cacti-0.8.x/scripts/
    cp –u –R /var/www/html/cacti/resource/* /var/www/html/cacti-0.8.x/resource/
    
  9. Set the permissions on the log and rra folders:

    cd /var/www/html/cacti-0.8.7g/
    chown –R cactiuser log/ rra/
    
  10. Change the symbolic link so that it points to the new directory:

    cd /var/www/html/
    ln –fs cacti-0.8.x cacti
    
  11. The final upgrade process is done using the web interface. Point your browser to http://<yourserver>/cacti/install and follow the steps. Make sure you select Upgrade on the second page.

  12. You can now enable the poller again using the Cacti web interface.

  13. Once you have made sure that everything is working fine, you can remove or archive the original Cacti directory.

What just happened?

You upgraded Cacti to a newer version. As a safety net, you created a backup of the database so you can revert back to the old version in case of an error. You copied the RRD files and other resources to the new installation and switched over by changing the symbolic link to point to the new location. You finished the upgrade process by going to the install URL which provided the final web-based upgrade process.

You have been reading a chapter from
Cacti 0.8 Beginner's Guide
Published in: Mar 2011
Publisher: Packt
ISBN-13: 9781849513920
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image