This is done with Ubuntu 12.04 Precise, but, it may be done with othe distros too. First install the required packages:
1 |
sudo apt-get install snmp snmpd apache2 mysql-server mysql-client rrdtool |
Go to /var/www/ download cacti, unpack it and rename it:
1 |
cd /var/www/ && sudo wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz && sudo tar zxvf cacti-0.8.8a.tar.gz && sudo mv cacti-0.8.8a cacti |
Create a database for cacti, a user for the database and insert the cacti tables in it:
1 |
mysqladmin -u root -p create cactidb |
1 |
mysql -u root -p -e "GRANT ALL ON cactidb.* TO 'cacti-admin'@'localhost' IDENTIFIED BY 'yourpassword';" |
1 |
mysql -u root -p cactidb < /var/www/cacti/cacti.sql |
Edit […]