[Resolved] PIA Not Working On New 0.8.7gb2 Install

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
m00tpoint
Posts: 29
Joined: Mon Jul 07, 2008 11:03 pm
Location: Chicago, IL, USA

[Resolved] PIA Not Working On New 0.8.7gb2 Install

Post by m00tpoint »

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
Last edited by m00tpoint on Thu Jun 24, 2010 4:12 pm, edited 1 time in total.
User avatar
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

Post by gandalf »

m00tpoint wrote:5) Edit url_path statement in /var/www/cacti/include/config.php to $config['url_path'] = '/cacti/';
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.
R.
m00tpoint
Posts: 29
Joined: Mon Jul 07, 2008 11:03 pm
Location: Chicago, IL, USA

Post by m00tpoint »

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";

?>
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

And you've gone into your admin user and enabled 'Plugin Management'?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
m00tpoint
Posts: 29
Joined: Mon Jul 07, 2008 11:03 pm
Location: Chicago, IL, USA

Post by m00tpoint »

And you've gone into your admin user and enabled 'Plugin Management'?
Now I have, and it works a lot better. :-) That might be a good step to add to the documentation.

Thanks Much,
m00t
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests