I’m assuming you already have a running debian system, i won’t go into explaining how to install debian this time.
First we update the sytem and install apache2, php5, mysql and mysql-server.
apt-get install apache2 php5 mysql-client mysql-server
You will be asked to change the password for the root mysql user, remember this 😉
now install the php5-myql plugin, snmp, unzip, rrd tools and snmp tools
apt-get install php5-mysql php5-snmp rrdtool snmp snmpd unzip
now change directories to the /var/www/html folder and download the latest cacti version, in my case it’s http://www.cacti.net/downloads/cacti-0.8.8h.tar.gz
unpack the file using tar xzvf cacti-0.8.8h.tar.gz and move the folder to cacti with mv cacti-0.8.8h cacti
now, go into the cacti folder and create the database
mysqladmin –user=root -p create cacti
import the database
mysql –user=root -p cacti < cacti.sql
Create the database user and password
mysql –user=root -p mysql
GRANT ALL ON cacti.* TO CHANGETHISUSER@localhost IDENTIFIED BY ‘CHANGETHISPASSWORD’;
change the username and password in your config file, nano -w include/config.php
now make sure the rights are set correctly with chown -R www-data rra/ log/
add the crontab in /etc/crontab
*/5 * * * * www-data php /var/www/html/cacti/poller.php > /dev/null 2>&1
Restart apache2 and mysql
service apache2 restart
service mysql restart
now point your browser at http://ipaddress/cacti
you should be seeing the install screen for cacti, everything should be green and in the end you can login using admin/admin and change the password afterwards.
Now, after that we can add the weathermap plugin, i like this plugin because it makes it really easy to see where your network is congested. For example, check out archive.org’s weathermap here https://monitor.archive.org/weathermap/weathermap.html
The releases for the network weathermap are available on github here https://github.com/howardjones/network-weathermap/releases/
for me the last one available is 0.98, download the file to the cacti/plugins folder
and unzip file file using unzip php-weathermap-0.98.zip
change the rights to www-data using chown -R www-data weathermap
go to cacti in your favorite browser and click plugin management, you should see weathermap there. click on the blue arrow and then the green one to enable the plugin. Done!