Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 2.88 KB

README.md

File metadata and controls

55 lines (44 loc) · 2.88 KB

Cacti Logo

Initial Cacti installation

If you do not already have Cacti installed, you can install into a clean unused AlmaLinux or RockyLinux minimal using my Cacti installation script

Cacti upgrade

⚠️ **[This upgrade script assumes you have Kevin's CentOS7 or AlmaLinux Cacti Template virtual appliance template] If you have gotten your Cacti install from Kevin's virtual appliance template .ova then this will work for you. You must not have made any changes to the Cacti directories or Apache settings. If you have installed Cacti via your own method or adjusted the template this will break your Cacti install!! ⚠️

If you do not have Kevin's Cacti virtual appliance you can read more about it here. http://www.kevinnoall.com

Issues

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.

Initial Upgrade Setup Instructions

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.

Get help on the script for available switches/options, etc...

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

Migrating to a new OS..

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.