Cactiusers.org


It is currently Thu May 17, 2012 7:55 am




Post new topic Reply to topic  [ 12 posts ] 
 Plugin Architecture 
Author Message
Post Plugin Architecture
Hi all,
I've just installed Plugin Architecture and nothing happened!!
I have Cacti 0.8.6g (updated from other old versions)
I used prepatched files 0.8.6g:
"cp -r files-0.8.6g/* /to/my/cactidir/"

After this, i extracted monitor and thold in plugins subdir.
Edited include/config.php and modified:
$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'monitor';

Nothing happened!!
Cacti works like if i have done anything!!
What to do?


Mon Nov 14, 2005 11:07 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: Plugin Architecture
Iceman wrote:
Hi all,
I've just installed Plugin Architecture and nothing happened!!
I have Cacti 0.8.6g (updated from other old versions)
I used prepatched files 0.8.6g:
"cp -r files-0.8.6g/* /to/my/cactidir/"

After this, i extracted monitor and thold in plugins subdir.
Edited include/config.php and modified:
$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'monitor';

Nothing happened!!
Cacti works like if i have done anything!!
What to do?


First question, have you added yourself to the permissions for these Plugins?


Mon Nov 14, 2005 11:38 am
Post 
I can't see any permissions in user manager...
It seems that it is not installed


Mon Nov 14, 2005 11:58 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Anonymous wrote:
I can't see any permissions in user manager...
It seems that it is not installed


What does the contents of your Plugins folder look like, are there directories like
\cact\plugins\thold\

or did it extract and extra directory under them like
\cacti\plugins\thold\thold\

As that has happened to several people before. One way or the other, we will get to the bottom of it.


Mon Nov 14, 2005 12:08 pm
Post 
obviously /cacti/plugins/thold


Mon Nov 14, 2005 12:16 pm
Post 
No one else can help me?
Sigh!


Tue Nov 15, 2005 8:30 am
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
Iceman wrote:
No one else can help me?
Sigh!


The hard thing is being able to figure out what is actually happening, when you can't look or touch the files. From the short description you gave, everything should be working perfectly, but its not.

If you editted config.php and it already had the proper places to modify. You could start off by double checking each file to ensure that they properly moved over. You could also try a little debug code to see if the plugins are even being included.

Try opening plugins/thold/setup.php and this code right after the <?php
Code:
print "Thold is being included!<br><br>";
exit;


Once you save that, go browse through a few pages in Cacti, if nothing happens then the plugins aren't being loaded. If that is the case, we will try debugging include/plugins.php


Tue Nov 15, 2005 9:47 am
Post 
Ok, i tried to include your two lines in different files.
In plugins folder, nothing happen if i try in setup.php of each thold or monitor folder.
Same thing in index.php of plugins folder.

In include folder both config.php and plugins.php returns white page with two lines.

I don't know what to do...


Tue Nov 15, 2005 12:13 pm
New User

Joined: Wed Oct 12, 2005 10:53 am
Posts: 12
Post 
Have you checked the permissions on the files themselves, perhaps they're owned by the wrong user and group?


Tue Nov 15, 2005 2:02 pm
New User

Joined: Tue Nov 15, 2005 12:38 pm
Posts: 2
Post 
:D ... do you think i am newbie?! :D
It was the first thing i checked
I will try to give chmod 777 to all files/folders...


Tue Nov 15, 2005 2:38 pm
New User

Joined: Tue Nov 15, 2005 12:38 pm
Posts: 2
Post 
I resolved.
It was the plugins directory that had "only" 604. I put it in 755 and now everything works!
I am pretty sure i put it in 644 in the past... can't understand who changed it...


Wed Nov 16, 2005 5:40 am
New User

Joined: Wed Oct 12, 2005 10:53 am
Posts: 12
Post 
Glad it worked out for you, I have had similar problems with other apps in the past, so I figured it couldn't hurt to suggest.


Wed Nov 16, 2005 2:14 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron