Installing cacti with lamp is still relatively simple. Learn it quickly!
Steps:
1. Install net-snmp
- yum install net-snmp*
-
Note that you need to add * to install all the doon; otherwise, there is no command required by cacti.
2. install php-snmp
- yum install php-snmp
-
3. Install rrdtool
- wget [url]ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/rrdtool-1.0.50-25.el4.at.i386.rpm[/url]
-
- rpm -ivh rrdtool-1.0.50-25.el4.at.i386.rpm
-
4. Install cacti
- wget [url]http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz[/url]
-
Decompress the tar.gz file.
- tar -zxvf cacti-0.8.7e.tar.gz
-
Move the decompressed folder to your/opt/lampp/htdocs directory.
- mv cacti-0.8.7e /opt/lampp/htdocs/cacti
-
Then configure the Cacti Database
- #/opt/lampp/bin/mysqladmin -u root -p123456 create cacti
-
Now we must insert the cacti table in the Cacti database:
- #/opt/lampp/bin/mysql -u root -p123456 cacti < /opt/lampp/htdocs/cacti/cacti.sql
-
Log on to the database
- #/opt/lampp/bin/mysql -u root -p123456
-
We grant cactiuser all permissions on the cacti database:
- mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';
-