No Plugins Listed...

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

No Plugins Listed...

Post by hichhiker »

Same problem as everyone else, but no solution is helping.

I had this problem with both, PIA2.9 add-on AND now with 0.8.7i with PIA 3.1 built in.

I can see the Plugins Management page - but no plugins listed.

* Gave cacti user "ALL" permission to the cacti DB, just in case
* Dropped all plugin_* tables and re-created them from 3.1's cacti.sql script.
* Made sure $url_path is set correctly
* I made sure the path is correct in the settings table in DB
* The user cacti is running under has full permissions to plugins dir and everything under it
* Installed clean plugins (settings and thold) straight from the tarballs
* There is nothing in cacti.log
* There is nothing in apache error log
* SELinux is disabled

I am at a loss with no errors and no clue to what is wrong. It just does not work.

Any pointers would be appreciated...

I started looking at the code - looks like it is pulling the list of plugins from the DB - any idea how they get into DB?

-HH
bonj87
Cacti User
Posts: 92
Joined: Fri Mar 26, 2010 7:42 am

Re: No Plugins Listed...

Post by bonj87 »

look in your plugins directory.. do you have copies of any of the plugins in there?
if so, remove them.
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

Re: No Plugins Listed...

Post by hichhiker »

bonj87 wrote:look in your plugins directory.. do you have copies of any of the plugins in there?
if so, remove them.
Nope - I had tarballs there initially - but I have long since removed them. All I have there is the index.php and two directories - settings and thold

:-(

-HH
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: No Plugins Listed...

Post by gandalf »

Are those directories empty? They should not ...
You should see both plugins listed under plugin management ...
You should not list any plugin in neither config.php nor global.php (as it was required ages ago :wink: )
R.
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

Re: No Plugins Listed...

Post by hichhiker »

gandalf wrote:Are those directories empty? They should not ...
You should see both plugins listed under plugin management ...
You should not list any plugin in neither config.php nor global.php (as it was required ages ago :wink: )
R.
Those directories contain pristine contents of the package tarballs I downloaded from the docs site.

I did not list any plugins in either - though when I was playing with weathermap - I was able to make it work (though NOT show up in PluginManager) by adding it to $plugins array.

Currently nothing is in $plugins array and I removed all plugins except the two I mentioned above. It is still not showing up. Anyone knows the process by which these are detected? Any way to get some tracing of this to see what the problem is?

-HH
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: No Plugins Listed...

Post by noname »

hichhiker wrote: * The user cacti is running under has full permissions to plugins dir and everything under
Can your web server's account (e.g. www-data, apache, etc.) access under plugins/ directory?
Cacti searches 'plugins/xxxx/setup.php' from GUI to make a listing of plugins.
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

Re: No Plugins Listed...

Post by hichhiker »

noname wrote:
hichhiker wrote: * The user cacti is running under has full permissions to plugins dir and everything under
Can your web server's account (e.g. www-data, apache, etc.) access under plugins/ directory?
Cacti searches 'plugins/xxxx/setup.php' from GUI to make a listing of plugins.
Yep, Apache runs as "apache" and "apache" user owns the files. Also, all directories are readable and executable - all files are readable. Also, I can hit "plugins/settings/setup.php" and get blank page instead of 404 - meaning the server can read setup.php

It has been a while since I did PHP - could it be that some security setting in php.ini prevents it from browsing the directory?
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

Re: No Plugins Listed...

Post by hichhiker »

hichhiker wrote: ...
* Gave cacti user "ALL" permission to the cacti DB, just in case
...
Found it. I was missing the permission to create temp tables.

Apparently granting "ALL" to a database(which I did) is not the same thing as granting "ALL" to all the tables(which I was missing). Live and learn.

Would have been nice to have some error handing - something that gives you a clue that something is failing.

-HH
discordare
Posts: 1
Joined: Mon Apr 23, 2012 11:20 am

Re: No Plugins Listed...

Post by discordare »

I tried the same thing but keep getting an empty plugin list.

For the record, I used the following sql statements:
GRANT CREATE TEMPORARY TABLES ON *.* TO 'cactiuser'@'localhost'
GRANT ALL PRIVILEGES ON `cacti`.* TO 'cactiuser'@'localhost'
Is there something I'm missing here?
hichhiker
Posts: 6
Joined: Mon Feb 06, 2012 9:04 pm

Re: No Plugins Listed...

Post by hichhiker »

discordare wrote:I tried the same thing but keep getting an empty plugin list.

For the record, I used the following sql statements:
GRANT CREATE TEMPORARY TABLES ON *.* TO 'cactiuser'@'localhost'
GRANT ALL PRIVILEGES ON `cacti`.* TO 'cactiuser'@'localhost'
Is there something I'm missing here?
Yes, you are granting "create temp tables" to tables - do it to DB (I.e. * vs *.*)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests