Cactiusers.org
|
|
|
|
It is currently Thu Sep 02, 2010 10:39 pm
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 1 post ] |
|
| Author |
Message |
|
mduling
New User
Joined: Fri Feb 22, 2008 2:48 am Posts: 10
|
 PA 2.0 install steps
Here are the steps I used to get PA 2.0 going with a new install of Cacti 0.8.7b using Apache 2.2.x.
BTW, for Mac users, they can now use MacPorts Cacti port and install it like this: 'port install cacti +plugins' - instructions are displayed at the end for completing the Cacti and PA install so these instructions aren't needed.
1) Install Cacti and patch it using cacti-plugin-0.8.7b-PA-v2.0.diff
2) Modify include/plugins/php as shown in this patch:
(remove lines prefixed with "-" and add the one with "+")
--- include/plugins.php.orig 2008-02-25 09:47:35.000000000 -0800
+++ include/plugins.php 2008-02-25 09:48:12.000000000 -0800
@@ -32,13 +32,7 @@
}
}
-if (isset($_SERVER['DOCUMENT_ROOT']) && isset($_SERVER['REMOTE_ADDR'])) {
- $config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), strlen(__FILE__) - strlen($_SERVER['DOCUMENT_ROOT']) - strlen('include/plugins.php'));
- db_execute("REPLACE INTO settings (name, value) VALUES ('url_path', '" . $config['url_path'] . "')");
-} else {
- $config['url_path'] = db_fetch_cell("SELECT value FROM settings WHERE name = 'url_path'");
-}
-
+$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);
3) Import the PA schema.
cd ${cactidir}
sudo cat ${cactidir}/pa.sql | mysql5 -u root -p cacti (cacti is the db name)
4) Download the particular Cacti plugin(s) you want and copy their folders to ${cactidir}/plugins/<plugin-dir>/.
For example:
${cactidir}/plugins/weathermap/
5) Edit ${cactidir}/include/global.php and add an entry for each plugin you installed after the'plugins' statement,
as shown in this example using the weathermap plugin:
\$plugins = array();
\$plugins[] = 'weathermap';
6) Enable the plugin in the Cacti web interface; this creates a top-level tab for the plugin in the Cacti interface
Console -> User Management (select a Cacti user and check the 'View Weathermaps' checkboxes)
|
| Mon Feb 25, 2008 2:13 pm |
|
|
|
Page 1 of 1
|
[ 1 post ] |
|
Who is online |
Users browsing this forum: Alexa [Bot] and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|