Unable to load plugins (Cacti 0.8.7g & PA 2.8)

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
jhunt31
Posts: 2
Joined: Wed Jul 21, 2010 7:12 pm

Unable to load plugins (Cacti 0.8.7g & PA 2.8)

Post by jhunt31 »

Hi,

I've just recently upgraded from cacti 0.8.7e to 0.8.7g and have installed Plugin Architecture for the first time.

I installed PA by replacing each file from the PA archive, updated my config.php from the .dist file & imported the pa.sql into the cacti database.

Cacti is working great, however I am unable to get the plugins to work. I have added each plugin to the config.php file as the instructions say, however the plugins do not appear to load. Plugin management is enabled for my admin user and is accessible, however no installed plugins are shown on this page.

The only plugin I have been able to get working the updates plugin from cactiusers.org. In addition to the normal install this also required importing an sql file into the cacti db. This plugin appears to be working correctly as it shows up under Plugin Management and also adds a Realm permissions option and Updates menu item.

Is there something I may have missed when installing/configuring the plugins?

Thank you in advance for any help! :)


Regards,

Jeremy
goita666
Posts: 4
Joined: Tue Jul 13, 2010 5:27 am

Post by goita666 »

it-s not necessary to add plugins to global.php or config.php . just add them to plugin direcory and they will be discovered by the plugins.php.
Check ownership and permissions of the plugins directories. or even better chown -R www-data:www-data /var/www/
jhunt31
Posts: 2
Joined: Wed Jul 21, 2010 7:12 pm

Post by jhunt31 »

Ahh, thanks a lot goita666! Removed the plugins from the config.php and they showed up straight away in plugin management... T_T

Thanks again for your help!

Cheers,

Jeremy
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Post by dorojatunb »

Hi all,

I still unable load plugin with PIA 2.8.
These are my permission:
drwxr-xr-x 8 apache apache 4096 Aug 12 09:55 plugins
-rwxr-xr-x 1 apache apache 25848 Jun 28 09:20 plugins.php
-rwxr-xr-x 1 root apache 4306 Feb 12 2008 poller_commands.php
-rwxr-xr-x 1 root apache 2243 Feb 12 2008 poller_export.php
-rwxr-xr-x 1 root apache 17909 Jun 5 21:45 poller.php
-rwxr-xr-x 1 root apache 71 Feb 12 2008 README
drwxr-xr-x 5 root apache 4096 Feb 12 2008 resource
drwxr-xr-x 2 root apache 278528 Aug 9 14:40 rra
-rwxr-xr-x 1 root apache 7084 Feb 12 2008 rra.php
drwxr-xr-x 2 root apache 4096 Feb 12 2008 scripts
-rwxr-xr-x 1 root apache 7304 Feb 12 2008 script_server.php
-rwxr-xr-x 1 root apache 353 Feb 12 2008 script_server.pl
-rwxr-xr-x 1 root apache 4996 Feb 12 2008 settings.php
-rwxr-xr-x 1 root apache 6667 Feb 12 2008 templates_export.php
-rwxr-xr-x 1 root apache 6524 Feb 12 2008 templates_import.php
-rwxr-xr-x 1 root apache 17835 Feb 12 2008 tree.php
-rwxr-xr-x 1 root apache 44603 Jul 8 11:34 user_admin.php
-rwxr-xr-x 1 root apache 64999 Jul 10 05:31 utilities.php
goita666 wrote: Check ownership and permissions of the plugins directories. or even better chown -R www-data:www-data /var/www/
What should I do?
And what is www-data?

R
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

www-data is a Linux distrib dependent user. Please test the PIA 2.9beta.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Post by dorojatunb »

TheWitness wrote:www-data is a Linux distrib dependent user. Please test the PIA 2.9beta.

TheWitness
Hi TheWitness,

I already try PIA 2.9beta, but still cannot load plugin.
What's wrong with my cacti? :(

Thanks
Attachments
untitled.JPG
untitled.JPG (97.12 KiB) Viewed 6379 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Permissions more than likely.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Post by dorojatunb »

Hi TheWitness,

These are my permission:
drwxr-xr-x 8 root root 4096 Aug 13 04:06 plugins
-rwxr-xr-x 1 root root 26368 Aug 2 05:02 plugins.php
-rw-r--r-- 1 root root 27184 Aug 13 04:06 plugins.php.rej
-rwxr-xr-x 1 root root 4306 Aug 13 04:06 poller_commands.php
-rwxr-xr-x 1 root root 2243 Aug 13 04:06 poller_export.php
-rwxr-xr-x 1 root root 17806 Aug 3 08:53 poller.php
-rw-r--r-- 1 root root 2442 Aug 13 04:06 poller.php.rej
-rwxr-xr-x 1 root root 1218 Aug 13 04:06 README
drwxr-xr-x 5 root root 4096 Aug 13 04:06 resource
drwxr-xr-x 2 root root 421888 Aug 13 04:08 rra
-rwxr-xr-x 1 root root 7084 Aug 13 04:08 rra.php
drwxr-xr-x 2 root root 4096 Aug 13 04:08 scripts
-rwxr-xr-x 1 root root 7304 Aug 13 04:08 script_server.php
-rwxr-xr-x 1 root root 353 Aug 13 04:08 script_server.pl
-rwxr-xr-x 1 root root 4996 Aug 13 04:08 settings.php
-rwxr-xr-x 1 root root 6667 Aug 13 04:08 templates_export.php
-rwxr-xr-x 1 root root 6524 Aug 13 04:08 templates_import.php
-rwxr-xr-x 1 root root 17835 Aug 13 04:08 tree.php
-rwxr-xr-x 1 root root 44603 Aug 2 05:02 user_admin.php
-rw-r--r-- 1 root root 2500 Aug 13 04:08 user_admin.php.rej
-rwxr-xr-x 1 root root 64999 Aug 2 05:02 utilities.php
-rw-r--r-- 1 root root 733 Aug 13 04:08 utilities.php.rej

But still unable load plugin.
The strange in here is when I re-edit config.php it influences the plugin.
$plugins = array();
$plugins[] = 'settings';
$plugins[] = 'tools';
$plugins[] = 'monitor';
$plugins[] = 'thold';
$plugins[] = 'hostinfo';
$plugins[] = 'rrdclean';

Where do I misconfigure?

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) You did not show me the permissions under the plugins directory.
2) You do not configure the plugins array in PIA 2.8++

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Post by dorojatunb »

1) These are the permissions under the plugins directory:
drwxr-xr-x 2 root apache 4096 Aug 10 16:05 hostinfo
-rwxr-xr-x 1 root apache 44 Jun 5 21:45 index.php
-rw-r--r-- 1 root apache 94 Aug 12 11:13 index.php.rej
drwxr-xr-x 4 root apache 4096 Aug 10 10:59 monitor
drwxrwxr-x 2 root apache 4096 Jun 7 22:44 rrdclean
-rw-r--r-- 1 root apache 17098 Jul 13 02:05 rrdclean-v0.40.tgz
drwxr-xr-x 3 root apache 4096 Apr 15 15:24 settings
drwxr-xr-x 5 root apache 4096 Aug 10 11:07 thold
drwxr-xr-x 2 root apache 4096 Aug 10 15:11 tools

2)You do not configure the plugins array in PIA 2.8++? I'm sorry, I don't understand. Can you explain it?

Thanks in advance
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Have your sourced the pa.sql file? What is in your Cacti log? What experience do you have with Plugins? Is this a new system?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dorojatunb
Posts: 15
Joined: Thu Jan 21, 2010 3:11 am

Post by dorojatunb »

TheWitness wrote:Have your sourced the pa.sql file? Is this a new system?

TheWitness
I have sourced the pa.sql. This is not a new system, I upgrade it from 0.8.7b. It has same problem when I use 0.8.7b. I thought if I upgrade to 0.8.7g, the plugin can be loaded.

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

E-mail was/is broken. Did you figure this out?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest