you're reading...
Linux Tips and Tricks

Install Cacti on CentOS 5

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/

DirectoryIndex index.php
Options -Indexes
AllowOverride all
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.



2 thoughts on “Install Cacti on CentOS 5

  1. I visited many web pages however the audio feature for audio songs present at this web page is genuinely wonderful.

    Posted by Bee Colony Removal Pretoria | May 1, 2014, 3:25 pm
  2. You post interesting content here. Your page deserves
    much more visitors. It can go viral if you give it initial boost, i know useful service that can help you, simply type in google:
    svetsern traffic tips

    Posted by Latosha | January 2, 2015, 9:10 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s