Cannot get new plugins to show in Plugin Management

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
casper19038
Posts: 16
Joined: Thu Jan 09, 2014 8:33 am

Cannot get new plugins to show in Plugin Management

Post by casper19038 »

Forgive the "noob-osity" of the following question ... but I am using CatiEZ latest greatest version and loving it so far! There are a lot of plugins that are already offered as a part of the CactiEZ install but I wanted to try my hand at adding one from Cacti.net and chose the ntop plugin. I downloaded it, and extracted it with WinRAR and then used WinSCP to move to the appropriate directory. It will not show in the list of plugins. (even restarted) I read on some forums that older plugins required an edit of the include file, but I am relatively sure that should not be the case here. Not sure where I have gone wrong ... and I am sure it is a simple fix. Advice is appreciated.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cannot get new plugins to show in Plugin Management

Post by phalek »

can you show us a directory listing of the plugins directory for your Cacti installation ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
casper19038
Posts: 16
Joined: Thu Jan 09, 2014 8:33 am

Re: Cannot get new plugins to show in Plugin Management

Post by casper19038 »

Sure thing ....
Attachments
pluginsdirectory.png
pluginsdirectory.png (6.6 KiB) Viewed 3920 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cannot get new plugins to show in Plugin Management

Post by phalek »

looks good to me. maybe this is a permission error ( e.g. the ntop directory isn't executeable or readable by the apache server )

The edit of include or config files to enable old plugins isn't necessary. It would complain in the plugin management page anyway if that would be the case, but up until now i've been able to install/enable most of the plugins through that page ( even PIA 1.x ones).
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
casper19038
Posts: 16
Joined: Thu Jan 09, 2014 8:33 am

Re: Cannot get new plugins to show in Plugin Management

Post by casper19038 »

Sorry for the long delay in getting back to this. It definitely was a permissions issue. Once I sorted that out, everything else was a piece of cake. Thanks for your help.
mattron81
Posts: 3
Joined: Wed Feb 05, 2014 9:36 am

Re: Cannot get new plugins to show in Plugin Management

Post by mattron81 »

It doesn't seem to me that this thread was answered 100%.

I'm new to Cacti, specs below:

CentOS 6
Version: 8.8b
Location: /usr/share/cacti
Plugins Location: /usr/share/cacti/plugins
Plugin Attempting to use: "monitor" which has been copied to the ./plugins directory.
I have changed permissions, recursively, on the ./plugins folder to 777 and 755 and that doesn't seem to help. I disabled and re-enabled the Plugin Management feature under User Management and it seems that PIA is not auto-discovering the plugin.

Let me know if I can provide any additional information. Any help would be greatly appreciated!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cannot get new plugins to show in Plugin Management

Post by phalek »

can you show us a directory listing of the plugins directory for your Cacti installation ?

Code: Select all

ls -l /usr/share/cacti/plugins
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
mattron81
Posts: 3
Joined: Wed Feb 05, 2014 9:36 am

Re: Cannot get new plugins to show in Plugin Management

Post by mattron81 »

phalek wrote:can you show us a directory listing of the plugins directory for your Cacti installation ?

Code: Select all

ls -l /usr/share/cacti/plugins
Absolutely!

[root@localhost plugins]# ls -l /usr/share/cacti/plugins
total 8
-rwxr-xr-x. 1 root root 44 Feb 5 09:21 index.php
drwxr-xr-x. 4 root root 4096 Feb 5 09:25 monitor
[root@localhost plugins]#
casper19038
Posts: 16
Joined: Thu Jan 09, 2014 8:33 am

Re: Cannot get new plugins to show in Plugin Management

Post by casper19038 »

The way I got around this permissions issue is using WinSCP, I compared the permissions and Group and Owner settings from the plugins that were already present from installing CactiEZ (located in the /var/www/html/plugins directory) and matched those permissions on the new plugins I added. Basically setting the Group and Owner to apache [48] instead of root. This is what did it for me. I am sure there are other and perhaps better ways, but I have been able to get my plugins to show up and install doing this. I hope it helps, if not let me know and I will be glad to do some screenshots if that would assist.
mattron81
Posts: 3
Joined: Wed Feb 05, 2014 9:36 am

Re: Cannot get new plugins to show in Plugin Management

Post by mattron81 »

casper19038 wrote:The way I got around this permissions issue is using WinSCP, I compared the permissions and Group and Owner settings from the plugins that were already present from installing CactiEZ (located in the /var/www/html/plugins directory) and matched those permissions on the new plugins I added. Basically setting the Group and Owner to apache [48] instead of root. This is what did it for me. I am sure there are other and perhaps better ways, but I have been able to get my plugins to show up and install doing this. I hope it helps, if not let me know and I will be glad to do some screenshots if that would assist.
Thanks for the update Casper! My /var/ww/html/ folder is actually empty so I don't have any existing permissions to match my current plugins directory to. I'm not sure what apache [48] is either so if you've got some screen shots that would be great!
casper19038
Posts: 16
Joined: Thu Jan 09, 2014 8:33 am

Re: Cannot get new plugins to show in Plugin Management

Post by casper19038 »

So I missed the part where you stated your plugins were located in a different spot. I installed Cacti using the CactiEZ iso, but the basic premise for what you need to do is likely the same. Again, I am using WinSCP (so it may be considered cheating from a Windows box). CactiEZ already had FTP installed so using WinSCP was easiest for me to match things up side by side. I attached a WinSCP screenshot for that.

Then CactiEZ already had plugins installed, installing from scratch, you likely won't have any, but the permissions still need to come out the same I think. For me Aggregate was already in my plugins folder and I have attached a screenshot of that.

I added NTop and made the permissions the same.

Hopefully this has not muddied the water. I am thinking if you chown -R apache /usr/share/cacti/plugins .... that may help.

I saw you were attempting to add monitor, I have added the permissions I have for that as well in a screenshot.

Let me know if I can do anything else to help.
Attachments
monitor.PNG
monitor.PNG (42.23 KiB) Viewed 3845 times
ntop.PNG
ntop.PNG (34.87 KiB) Viewed 3845 times
aggregate.PNG
aggregate.PNG (47.54 KiB) Viewed 3845 times
winscp.PNG
winscp.PNG (43.43 KiB) Viewed 3845 times
zw1fter
Posts: 2
Joined: Wed Feb 19, 2014 4:23 am

Re: Cannot get new plugins to show in Plugin Management

Post by zw1fter »

am also having the same problem but mine is a cacti 0.8.8a n any time i try to use the chown command it tells me unknown user:apache
pls help me
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cannot get new plugins to show in Plugin Management

Post by phalek »

it may be www-data in you case.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
zw1fter
Posts: 2
Joined: Wed Feb 19, 2014 4:23 am

Re: Cannot get new plugins to show in Plugin Management

Post by zw1fter »

pls can u explain further
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Cannot get new plugins to show in Plugin Management

Post by phalek »

check the default permissions of other plugins ( ls -l ) and you see what users they have as owner.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests