Plugins problems

Support for the Plugin Architecture

Moderators: Moderators, Developers

Post Reply
Author
Message
babizi
Posts: 1
Joined: Sun Jul 14, 2013 4:20 am

Plugins problems

#1 Post by babizi » Sun Jul 14, 2013 4:30 am

I've downloaded the latest Cacti version (0.8.8 ) from the website last week.
I've read that i don't need to install PIA because it's invluded inside the Cacti 0.8.8.
Now i'm trying to install some plugins (Weathermap, thold, realtime), so i've downloaded the files, extracted them and moved them to /var/www/html/cacti/plugins
Now I have no idea why, but i can't see them in the Plugin Management inside Cacti.
Can anyone please help me? maybe i'm missing something?

cigamit
Developer
Posts: 2782
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Plugins problems

#2 Post by cigamit » Tue Aug 13, 2013 12:39 pm

1st, check the permissions on the plugin folders, make sure them and all files under then are readable by the webserver.
2nd, check and ensure the folder names are correct (ex: thold plugins folder name should be "thold" and the setup.php files should be directly under that folder)

mabelrxu
Posts: 17
Joined: Fri Aug 23, 2013 2:17 pm

Re: Plugins problems

#3 Post by mabelrxu » Fri Aug 23, 2013 2:21 pm

I have the same problem as the OP, does the plugins directory need the same owner as rra, or as the rest of the cacti files?

I am trying to install rrdclean, and I double checked, it is the only folder inside /var/www/cacti/plugins/, and there exists a /var/www/cacti/plugins/setup.php with the below function (and others) inside:

Code: Select all

function plugin_rrdclean_install () {
        api_plugin_register_hook('rrdclean', 'config_arrays', 'rrdclean_config_arrays', 'setup.php');
        api_plugin_register_hook('rrdclean', 'draw_navigation_text', 'rrdclean_draw_navigation_text', 'setup.php');
        api_plugin_register_hook('rrdclean', 'config_settings', 'rrdclean_config_settings', 'setup.php');
        api_plugin_register_hook('rrdclean', 'poller_bottom', 'rrdclean_poller_bottom', 'setup.php');

        rrdclean_setup_table_new ();
}

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

Re: Plugins problems

#4 Post by gandalf » Fri Aug 23, 2013 2:31 pm

mabelrxu wrote:and there exists a /var/www/cacti/plugins/setup.php with the below function (and others) inside:
That's strange. It should be /var/www/cacti/plugins/rrdclean/setup.php
R.

mabelrxu
Posts: 17
Joined: Fri Aug 23, 2013 2:17 pm

Re: Plugins problems

#5 Post by mabelrxu » Fri Aug 23, 2013 2:55 pm

sorry, I mistyped ... when I do

Code: Select all

ls -al plugins/rrdclean/
I have

Code: Select all

drwxrwxr-x. 2 root root  4096 Dec 14  2010 .
drwxrwxr-x. 3 root root  4096 Aug 23 09:12 ..
-rw-rw-r--. 1 root root  1117 Nov 18  2010 inc_rrdclean_filter_table.php
-rw-rw-r--. 1 root root 15237 Nov 18  2010 LICENSE
-rw-rw-r--. 1 root root  3157 Dec 14  2010 README
-rw-rw-r--. 1 root root 18813 Dec 14  2010 rrdcleaner.php
-rw-rw-r--. 1 root root 10754 Dec 14  2010 rrdmove.php
-rw-rw-r--. 1 root root  7330 Dec 14  2010 setup.php
I think my main problem is this:

Code: Select all

mysql> select * from plugin_config;
Empty set (0.00 sec)
what populates the plugin_config database table?

mabelrxu
Posts: 17
Joined: Fri Aug 23, 2013 2:17 pm

Re: Plugins problems

#6 Post by mabelrxu » Fri Aug 23, 2013 3:22 pm

I have no plugins detected, despite the below:

Code: Select all

ls -al plugins/
total 16
drwxrwxr-x.  3 root root 4096 Aug 23 09:12 .
drwxr-xr-x. 13 root root 4096 Aug 23 09:06 ..
-rw-r--r--.  1 root root   45 Aug 23 09:04 index.php
drwxrwxr-x.  2 root root 4096 Dec 14  2010 rrdclean
any thoughts?
Attachments
Untitled.png
Untitled.png (193.14 KiB) Viewed 4354 times

mabelrxu
Posts: 17
Joined: Fri Aug 23, 2013 2:17 pm

Re: Plugins problems

#7 Post by mabelrxu » Sat Aug 24, 2013 1:35 am

fixed it by upgrading from 0.8.8a to 0.8.8b. lol

Post Reply