Monthly Archives: novembre 2012

Debian cacti plugin

First install cacti

apt-get install cacti cacti-spine

Then install what is needed to have plugin working, be carefull with release version, it has to be the same as the cacti installation:

cd /tmp
wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7g-PA-v2.8.tar.gz
tar xvf cacti-plugin-0.8.7g-PA-v2.8.tar.gz
cp -r /tmp/cacti-plugin-arch/* /usr/share/cacti/site/

Then run SQL statement from file pa.sql
Change /usr/share/cacti/site/include/global.php as follows

/* Line 37 $database_username = "cactiuser"; */
$database_username = "cacti";
/* Line 38 $database_password = "cactiuser"; */
$database_password = "enter your pass given during installation(not cactiuser)";
/Line 105 *$config['url_path'] = $url_path;*/
$config["url_path"] = '/cacti/';
/* Line 112 $config["rra_path"] = $config["base_path"] . '/rra';*/
$config["rra_path"] = "/var/lib/cacti/rra";
/* Line 202 include($config["library_path"] . "/adodb/adodb.inc.php");*/
include("/usr/share/php/adodb/adodb.inc.php");

Check file /usr/share/cacti/site/include/config.php has the following content (it should not have been changed)

$database_type = "mysql";
require('/etc/cacti/debian.php');
#$cacti_session_name = "Cacti";

Change /etc/cacti/debian.php

$database_username='cacti';
$database_password='xxxxxxxxxx';
$plugins = array();

Now go in menu « User Management », select admin user, in « Realm Permissions » you should get a new option « Plugin Management ». Tick it to have « Plugin Management » entry menu in Configuration of the left pane.