thold

I used my notes from here to install PIA. then got a copy of thold from the Cacti plugins page.  There seem to be a lot of links to useless Cacti plugins this one appears to be updated regularly.
wget http://docs.cacti.net/_media/plugin:thold-v0.4.9-3.tgz
tar -zxvf thold-v0.4.9-3.tgz

cp -R thold /usr/share/cacti/site/plugins/
It might be easier to just copy the file to the plugins directory and uncompress it there.
Since this is a newer version of plugin just enter the web interface and enable the plugin there.

.

All done.
This requires the settings plugin but setup is exactly the same as this.

RANCID bulk changes

First I created a file in this case filename with the commands I wanted to run inside it. I changed to the rancid user first and then created the file and ran the commands as rancid.
su rancid -s /bin/bash
cat filename

 access-list 01 permit host xxx.xxx.xxx.xxx
snmp-server community STRING rw 01
Save the file as filename. 
Then run clogin using this file and a hostname.

clogin -x filename hostname
Give the full path to clogin if needed, and if there is more than one host being changed use a space between each hostname.

Cacti from apt-get repositories and PIA to use weathermap

I made some changes to the original I found for this but someone else did all the heavy lifting. Mostly I left the lines I changed in and commented them out, just in case.
It took me a long time to find this much information on getting the PIA system running on cacti when I installed it from apt-get. I also assume you have already installed mysql, Apache and anything else that you might need.
This worked for Ubuntu 10.10 Maverick Meerkat and Debian 6.0 Squeeze.

Thank you to Note to Self blog for dummies. This site has died 8/29/2012

apt-get install cacti
apt-get install cacti-spine
apt-get install php5-gd

wget http://mirror.cactiusers.org/downloads/plugins/
I ended up getting the plugin from here.
I just redid this 7/27/2012 and used cacti-plugin-0.8.7h-PA-v2.8.tar.gz
tar xvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz

make a backup of /usr/share/cacti/site
mkdir /home/user/cactibackup
cp -R /usr/share/cacti/site/* /home/user/cactibackup/

cd cacti-plugin-arch/files-0.8.7g
sudo cp -R * /usr/share/cacti/site/

wget http://www.network-weathermap.com/files/php-weathermap-0.97a.zip
unzip php-weathermap-0.97a.zip

cd ..
mysql cacti < pa.sql -u root -p

sudo nano /usr/share/cacti/site/include/global.php

At row 107:
$config[“rra_path”] = $config[“base_path”].”/rra”;
Change it to:
/* $config[“rra_path”] = $config[“base_path”].”/rra”; */
$config[“rra_path”] = ‘/var/lib/cacti/rra’;

7/27/2012 I just created a link this time and skipped the step above.
ln -s /var/lib/cacti/rra /usr/share/cacti/site/rra
Without this link I had broken links for the images.

At row 197
include($config[“library_path”].”/adodb/adodb.inc.php”);
Change it to:
/* include($config[“library_path”].”/adodb/adodb.inc.php”); */
include(“/usr/share/php/adodb/adodb.inc.php”);

At row 100
$config[‘url_path’] = $url_path;
Change to
/* $config[‘url_path’] = $url_path; */
$config[‘url_path’] = ‘/cacti/’;

Below row 42 $cacti_session_name = “Cacti”; add
/* Weathermap */
$plugins = array();
$plugins[] = ‘monitor’;
$plugins[] = ‘weathermap’;

Save and quit

sudo chmod 644 /usr/share/cacti/site/lib/plugins.php
sudo chmod 644 /usr/share/cacti/site/include/plugins.php

cd ..
mv weathermap/ /usr/share/cacti/site/plugins
chown -R www-data:www-data /usr/share/cacti/site/plugins