Deployment:Linux:Cacti:Upgrade
From Main
Upgrading cacti was done as per upgrade steps in the manual http://www.cacti.net/downloads/docs/html/upgrade.html
Prior to starting I had to kill the poller.php process (still not sure how this starts, looks like it is launched when someone logs in)
For debian I had to: $ rename /usr/share/cacti to /usr/share/cacti.old $ mkdir /usr/share/cacti $ cd /usr/share/cacti; tar xvzf /tmp/cacti-0.8.7e.tar.gz $ mv cacti-0.8.7e.tar.gz site
note that under debian the resource folder is outside document root and that your old folder is still under .../cacti.old/resource. - cd /usr/share/cati.old; cp -u -R resource /usr/share/cacti #This will get your old resource folder to where it should be
- Now time to update any changes from the new distribution
cd /usr/share/cacti/site; cp -u -R resource /usr/share/cacti
For debian /usr/share/cacti/site/include/config.php is just a simple pointer to /etc/cacti/debian.php . I compared the two files under this version and they appeared the same. So cp /usr/share/cacti.old/site/include/config.php /usr/share/cacti/site/include/config.php
Login via web, go through the wizard.
I noted that under debian my rra files were stored under /var/lib/cacti/rra which is different from the distribution tarball that is configure to have them under "site_root" (ie. /usr/share/cacti/site) /rra . For include/global.php make the following change:
- Original path
- $config["rra_path"] = $config["base_path"] . '/rra';
- Debian specific path
$config["rra_path"] = '/var/lib/cacti/rra';
Finally graphs weren't updating. Had to rebuild poller cache under System Utilities in the web UI. Graphs seem to be ok.
...now, on to installing the cacti plugin architecture.

