

:~# cp -R /var/www/html/cacti-back/rra/* /var/www/html/cacti/rra/ This will copy your graphs along with your config file needed for cacti to access the database and other settings :~# cp /var/www/html/cacti-back/include/config.php /var/www/html/cacti/include/ :~# chown -R www-data:www-data /var/www/html/cacti Moving the files in place of where the old files are essentially completes the upgrade we will need to apply the proper permissions as well :~# mv cacti/ /var/www/html/ Step 6.) copy the new cacti directory to /var/www/html Step 5.) rename the current cacti directory in /var/www/html to cacti-back :/var/www/html# mv cacti/ cacti-back

HTTP request sent, awaiting response… 200 OK I will be downloading the latest 1.2.4 release from the Cacti projects GitHub page wget Step 4.) Download the new version of cacti In this case I am moving the cacti directory to the /tmp directory the cacti folder contains all of the files needed for cacti along with the graphs which are located in the RRA folder import notice if you have a large installation with many devices you might want to move this folder to a network share or something with a lot of space. Step 3.) Backup the existing cacti directory :~# mysqldump -u root -p cacti > cacti-backup.sql We use the mysqldump command to dump the database named cacti to cacti-backup.sql this is a very important step as the database contains all system settings such as user accounts and devices we are monitoring without the database your cacti instance will be back to scratch so again its important that we keep this backed up. Step 1.) Stopping the poller cronjob this is important for consistency purposes we don’t want cron to run the polls while we are upgrading the system In this scenario, I am upgrading from Cacti 1.2.2 to 1.2.4 which is the latest release version at the time of this writing. In general, there are a few steps for a safe upgrade follow the below steps to properly and safely upgrade your cacti server

Updating Cacti can be easy or tricky depending on your system size and design.
