1) Installed Cacti 0.8.7gb2 from tarballs on Ubuntu 10.04. It works fine.
2) Untarred cacti-plugin-0.8.7g-beta2-PA-v2.8.tar
3) cp -r files-0.8.7g/* /var/www/cacti
4) chown -R cacti /var/www/cacti/*
5) Edit url_path statement in /var/www/cacti/include/config.php to $config['url_path'] = '/cacti/';
6) Added $plugins[] = 'mactrack'; to config.php.
7) Imported pa.sql into mysql
8) Copied mactrack plugin tree into /var/www/cacti/plugins, chowned to cacti.
9) Restarted mysql and apache2.
Results:
1) No "Plugins" item under "Configuration" item in Cacti console, no evidence at all on the cacti web pages that PA or mactrack is there.
2) Errors in /var/www/cacti/log/cacti.log every time spine runs:
"06/23/2010 10:15:03 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"delete from mac_track_processes where start_date < '2010-06-23 09:55:03''" The "start date" in the error increments to always be 20 minutes behind the time the poller runs.
Spine is compiled from the tarball for 0.8.7gb2.
In http://cactiusers.org/wiki/PluginArchitectureInstall, the references to editing global.php need to be changed to config.php. I'm guessing that page is missing some other simple thing I need to do.
My editor (nano) tells me that config.php (among others) are in DOS format.
Thanks,
m00tpoint
[Resolved] PIA Not Working On New 0.8.7gb2 Install
Moderators: Developers, Moderators
[Resolved] PIA Not Working On New 0.8.7gb2 Install
Last edited by m00tpoint on Thu Jun 24, 2010 4:12 pm, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: PIA Not Working On New 0.8.7gb2 Install
You will have to use config.php.dist when updating using full file replacement. Then, apply all required changes to the configuration. E.g. listing "old style" plugins is now done in config.php.m00tpoint wrote:5) Edit url_path statement in /var/www/cacti/include/config.php to $config['url_path'] = '/cacti/';
R.
Here's my config.php, which I believe is correct:
<?php
***SNIP***
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'mactrack';
***SNIP***
$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
?>
<?php
***SNIP***
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'mactrack';
***SNIP***
$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
?>
Who is online
Users browsing this forum: No registered users and 2 guests