
Sed -ie "s/DB_User.*/DB_User cactiuser /g" /usr/local/spine/etc/ Ver=$(tar -tf | head -n1 | tr -d /) #getting the version number Rm –r cacti-spine-* | rm #removes any previous files that may have a name conflict with the new file. Systemctl start mysql apache2 #starting services Sed -ie "s/\$database_default =.* /\$database_default = ' cactidb' /g" ~/cacti/include/config.phpĬp -r cacti/* /opt/cacti/ #copy the new files into your cacti directory Sed -ie "s/\$database_password =.* /\$database_password = ' ' /g" ~/cacti/include/config.php Sed -ie "s/\$database_username =.* /\$database_username = ' cactiuser' /g" ~/cacti/include/config.php Systemctl stop mysql apache2 #stopping the services Tar -xvf & mv $ver cacti #extracting the file and renaming the directoryĬhown -R www-data:www-data ~/cacti/ #changing the owner of the new directoryĬhown -R cactiuser ~/cacti/rra/ ~/cacti/log/ ~/cacti/cache/ #changing the owner of specific sub-directories

Rm | rm –r cactin #removes any previous files that may have a name conflict with the new file.

#How to install cacti on ubuntu 16.04 server upgrade
Systems and installs very but I am able to preform the complete upgrade in between my 5 minute polls. (changing cacti- to this cacti- 1.1.6.tar.gz) If you need to install a specific version, find and replace "latest" with the version number. Some updates have db changes and if those are skipped, later updates may fail. I have this saved in a txt doc with my own db/user/pass options set and just copy/paste every time I need to upgrade.īe sure not to skip release versions.

This process is based on the install above so use caution if you installed in any other way. Your Cacti and Spine installation is now complete.Īlong with the modification of the install due to the frequent releases, I also create a simple copy/paste upgrade process. Switch to the Poller tab and click on the drop down menu for Poller Type. Spine Config File Path = /usr/local/spine/etc/ĩ. Spine Binary File Location = /usr/local/spine/bin/spine
