(Usual disclaimer applies: Use this on a test system, I don’t claim this to be bulletproof if you’ve made changes etc.
but it should work ! ie. did for me on a fully running system )
Install cacti via aptitude as per usual, loads of guides out there for that; configure it etc. can even add hosts. It doesn’t break anything, so this can be an upgrade on a current running system.
Download Hardy’s cacti deb from http://packages.ubuntu.com/hardy/web/cacti
Install that locally, you’ll then need to follow the upgrade process via the browser again. Be careful if you used cactid rather than the php script you’ll need to make sure it’s not looking for spine (the new cactid name) which hasn’t changed as of yet.I simply modified the path in the config to point at the current cactid binary file.
After all that, check it’s running, it should be ! Then you can grab the Cacti Plugin Architecture from http://cactiusers.org/downloads/cacti-plugin-arch.tar.gz
Best thing to do here is make a quick backup of /usr/share/cacti/site
cd /usr/share/cacti/
sudo cp -a /usr/share/cacti/site /usr/share/cacti/site_BACKUP
Then untar the plugin-arch tarball to the /usr/share/cacti/ directory and copy the directory within and the patch file into your /usr/share/cacti/site directory and follow the details on the cactiusers.org page to patch them, note do not overwrite files as this totally messes up the changes Ubuntu has made to the Cacti package.
There’s a tiny fix needs to be applied though, edit the file /usr/share/cacti/site/includes/global.php and on line 57 (on mine anyway) and modify it to
$config['url_path'] = ‘/cacti/’;
The patching proces changes that to $config['url_path'] = ‘/’; which means all the graphics disappears etc. which is obviously not good !
That should be it… one thing to note is so far the CLI tools for cacti are not in the Ubuntu package. Dead simple to add these. Just download the 0.8.7a tarball from cacti.net and extract it somewhere. Inside it is a cli directory, that can be just copied into the /usr/share/cacti/site folder and you can add graphs, hosts etc. via the CLI tools.
Enjoy…
Baring any omissions by me (This was done from memory)






4 comments
Comments feed for this article
Friday, February 22, 2008 at 20:14
Mark
Have you tried PA 2.0 & 0.8.7b? It is giving me and others fits and the forum seems to give little definite help. If you do successfully upgrade, please post detailed instructions as you did here. Thanks!
Wednesday, March 5, 2008 at 9:42
Félim
Hi Mark, I’ve not had a chance to take a look at it. To be hoenst on my Dev system I’m trying to stick with the distro provided packages (even though this is from Hardy on a Gutsy system) to make the path clear for a future upgrade. But I’ll probably take a look anyway.
Are you doing the install via the tarball ? And if you stick in some links to the relevant forum links I’ll have a look there too.
Cheers
Friday, September 11, 2009 at 12:04
aaron
The post here seemed to work for me, at least I was able to get the Plugin Arch recognized and then get a plugin installed, haven’t tested to see if it actually works yet, but it shows up and without error. Im running Ubuntu 8.04 server, Cacti 8.7b
http://cactiusers.org/forums/topic1631.html
Monday, June 28, 2010 at 4:53
How to Install Cacti 0.7.8d Plugin Architecture on Ubuntu 9.10 | David Merrick
[...] Patch the Plugin Architecture onto your Cacti install with this guide. Instead of downloading the version that he specifies, however, download this one, rename it to [...]