If you do not already have Cacti installed, you can install into a clean unused AlmaLinux or RockyLinux minimal using my Cacti installation script
If you do not have Kevin's Cacti virtual appliance you can read more about it here. http://www.kevinnoall.com
This is all still actively being worked on, so you may see changes to how things work and interact. If you run into trouble with the script please submit an issue in the GitHub system above.
Based on a Kevin's CentOS/AlmaLinux/RockyLinux Cacti Template virtual appliance with Cacti v1.1.6 or greater, this script will upgrade to the current release: Run this from the command line...
bash <(curl -s https://raw.githubusercontent.com/KnoAll/cacti-template/master/bootstrap.sh)
Subsequent updates can be run by simply
./cacti-upgrade
from the cacti user's home directory.
./cacti-upgrade --help
The script will:
- download the cacti-upgrade.sh script
- check for proper user
- check for cacti version compatiblity
- backup the cacti db into an archive in the cacti directory
- upgrade cacti to the current production release
- preserve your existing data by copying over all data rras, script and snmp queries, resource files, and plugins
- upgrade spine to the current production release
- upgrade centos with any updates nessesary for compiling spine
- archive your previous cacti install
- ask if you would like to check for a compatible Smokeping upgrade
- walks through Smokeping upgrade if desired backing up all data
- ask if you use smokeping, and gives options to dis/enable the service
- can be useful if you are not using smokeping so that you are not polling/pinging targets without using the data
Once the upgrade has been done, you must complete the installation from the Cacti web gui. After the gui install has been done, you must go to Utilities > System Utilities and select 'Rebuild Poller Cache' or you will see errors in the cacti log
Moving your Cacti installation can be done by doing a backup from the source install using the --backup-data switch in the script. you can then do a fresh install on your new target AlmaLinux or RockyLinux clean system. Once it is installed and running you can restore your previous backup with --restore-data.