Cacti Installation

Cacti Installation

Extract Cacti

  1. Get Cacti (http://www.cacti.net/downloads/cacti-0.8.7a.tar.gz) and place in /var/tmp/
  2. gtar xvfz /var/tmp/cacti-0.8.7.tar.gz
  3. mv /var/tmp/cacti-0.8.7 /usr/local/apache/htdocs/cacti

Create Cacti DB in MySQL

Note: have your mysql root password ready

  1. mysqladmin --user=root -p create cacti
  2. mysql --user=root -p cacti < /usr/local/share/cacti/cacti.sql
  3. mysql --user=root -p mysql
     GRANT ALL ON cacti.* TO cactiuser@localhost;
     GRANT USAGE ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipassword';
     GRANT ALL ON cacti.* TO cactiuser@"%";
     GRANT USAGE ON cacti.* TO cactiuser@"%" IDENTIFIED BY 'cactipassword';
     flush privileges;
     exit

Update Cacti with DB username/password

  1. vi /usr/local/apache/htdocs/cacti/include/config.php
      $database_default = "cacti";
      $database_hostname = "localhost";
      $database_username = "cactiuser";
      $database_password = "cactipassword";

Add Cacti Poller to Crontab

  1. vi /etc/crontab
      */5 * * * * /usr/local/php/bin/php /opt/apache/htdocs/cacti/poller.php >/dev/null 2>&1(Linux)
      0,5,10,15,20,25,30,35,40,45,50,55 * * * *  /usr/local/php/bin/php /opt/apache/htdocs/cacti/poller.php >/dev/null 2>&1(Solaris)

Configure Apache for Cacti

  1. vi /usr/local/etc/apache22/httpd.conf
      <Directory /usr/local/apache/htdocs/cacti/>
             AllowOverride None
             Order allow,deny
             Allow from all
      </Directory>
      Alias /cacti/ /usr/local/apache/htdocs/cacti/

Log in for the 1st time!

  1. http://x.x.x.x/cacti/
        1. Accept the defaults
        2. Login as admin/admin
        3. Change admin password
Advertisements

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


%d bloggers like this: