• Increase font size
  • Default font size
  • Decrease font size
install cacti

 Download plugin “monitor”

$ wget http://cactiusers.org/downloads/monitor.tar.gz
$ tar -zxvf monitor.tar.gz

Move monitor plugins into cacti plugins directory

$mv /root/tmp/monitor  /var/www/cacti/plugins/

You will see a file like below : Now goto the directory that you extracted the Plugin Architecture to. In this directory you will find several files with names simular to this “cacti-plugin-0.8.7a-PA-v1.4.diff”. 
This is a patch file that contains everything you need to install the Plugin Architecture. You will copy the file that corresponds with your Cacti version to the location of your Cacti install using a command prompt (if you weren’t already using one!) ex : /var/www/cacti 
Run patch into cacti root location :

$ cp cacti-plugin-0.8.7a-PA-v1.4.diff /var/www/cacti
$ cd /var/www/cacti
$ patch -p1 -N < cacti-plugin-0.8.7a-PA-v1.4.diff

 

Next, we need to configure and install plugins “monitor” plugins into cacti :

......

/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "Cacti";

$plugins = array();
$plugins[] = 'monitor';
//$plugins[] = 'xxxxx_plugins'; <-- if you have another plugin you can just put here
//$plugins[] = 'xxxxx_plugins'; 

/* Do not edit this line */
$config = array();

/*
This is full URL Path to the Cacti installation
For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
as the url path.  For just http://server/ use '/'
*/

$config['url_path'] = '/';
..........
Save this file and exit.

 

From:http://techgurulive.com/2009/02/11/how-to-install-cacti-plugin-architecture-in-linux/

 

Install and Configure Cacti

  1. Extract the distribution tarball. Untar to the DOCUMENT_ROOT of your web server
    shell> tar xzvf cacti-version.tar.gz
  2. Create the MySQL database:
    shell> mysqladmin --user=root create cacti
  3. Import the default cacti database:
    shell> mysql cacti < cacti.sql
  4. Optional: Create a MySQL username and password for Cacti.
    shell> mysql --user=root mysql
    mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
    mysql> flush privileges;
  5. Edit “include/config.php” and specify the database type, name, host, user and password for your Cacti configuration.
    $database_type = "mysql";
    $database_default = "cacti";
    $database_hostname = "localhost";
    $database_username = "cactiuser";
    $database_password = "cacti";
  6. Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.
    shell> chown -R cactiuser rra/ log/

    (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

  7. Add a line to your ”/etc/crontab” file similar to1):
    */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1

    Replace cactiuser with the valid user specified in the previous step.Replace ”/var/www/html/cacti/” with your full Cacti path.

  8. Make sure, that the cron daemon is running:
    shell> service crond start
    shell> chkconfig crond on
  9. Point your web browser to: http://your-server/cacti in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.
1) If you are installing from a distro specific package, ensure that a crontab entry has note already been created by the package installatin routine