Monday, July 26, 2010

Install Monitor Plugins for CACTI

Plugins Monitor for Cacti
Requirement :
- Cacti is running
- Download plugin monitor
http://cactiusers.org/downloads/monitor.tar.gz
- Download Plugin Architecture
http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7d-PA-v2.4.zip


Install Plugin Architecture
---------------------------
# mkdir /var/www/cacti/plugins

mode 1:

# cd /tmp/
# ftp -a http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7g-PA-v2.8.tar.gz
# tar -zxvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz
# cd cacti-plugin-arch
# cp cacti-plugin-0.8.7g-PA-v2.8.diff /var/www/cacti/
# cd /var/www/cacti/
# patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff 

Mode 2: 

# cd /tmp/ 

# ftp -a http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7g-PA-v2.8.tar.gz 

# tar -zxvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz 

# cd cacti-plugin-arch

# cd files-0.8.7g 

# cp -R include/ /var/www/cacti/include

# cp -R lib/ /var/www/cacti/lib 

# cp -R plugins/ /var/www/cacti/plugins

# cp *.php /var/www/cacti/


Import pa database

#mysql -u root -p cacti < /tmp/cacti-plugin-0.8.7g-PA-v2.8/files-0.8.7g/pa.sql



Install Plugin Monitor
----------------------

# cd /tmp/
# ftp -a http://cactiusers.org/downloads/monitor.tar.gz
# tar -zvxf monitor.tar.gz
# mkdir /var/www/cacti/plugins
# mv monitor /var/www/cacti/plugins/
# vi /var/www/cacti/include/configl.php

edit + add as below, adjust with your cacti :

/* Default database settings*/
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipassword";
$database_port = "3306";

$plugins = array();
$plugins[] = 'monitor';

$config['url_path'] = '/cacti/';


Import database plugin monitor

# mysql -u root -p cacti < /var/www/cacti/plugins/monitor/monitor.sql finish and the screenshoot should like this:



4 comments:

  1. Thanks a million for this. I have been trying for weeks to get this working but using these clear and concise instruction it has taken me all of 3 min. to FINALLY get the Monitor plugin up and running.

    ReplyDelete
  2. I installed cacti, this time this monitor only the machine where you installed the cacti.
    What most want is for the plugin also necessary to function. More unfortunately I can not because when I apply the patch I get many errors.
    Sera that someone can help me?

    ReplyDelete