Environment: Centos 5.8, x64 system, mysql already installed
1. Setup RPMForge repository for cacti installation.
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
2. Install cacti via yum and you will see something like below:
yum install cacti
3. Create a mysql cacti database and cacti database user:
3.1 mysql -u root -p
3.2 create database cacti_db;
3.3 mysql> GRANT ALL ON cacti_db.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'cactiuser';
3.4 mysql> quit
3.5 Populate the cacti database: mysql cacti_db -u cactiuser -p < /var/www/html/cacti/cacti.sql
4. Modify /var/www/html/cacti/include/config.php to have the correct password for the cacti database that was set @ step 3.3
5. Modified /etc/httpd/conf.d/cacti.conf to fix url and allow access from anywhere; no retriction for the meantime.
Alias /cacti /var/www/html/cacti/
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
6. Restart apache – /etc/init.d/httpd restart
7. On your browser, go to http://servername/cacti/ and follow the sequence of images below:
8. Check your installation. login to http://servername/cacti with default user(admin) and default password(admin). Once logged in for the first time, you will be asked to change the admin password. Go ahead and change the password as desired.
Next up, setting up cacti into action and setting up THOLD for alerts.