FAQFAQ   SearchSearch   RegisterRegister   ProfileProfile   Log inLog in 

Plugin Architecture, Settings and THold

 
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General
View previous topic :: View next topic  
Author Message
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Wed Jun 25, 2008 10:31 pm    Post subject: Plugin Architecture, Settings and THold Reply with quote

Hi guys,

I'm trying to get my testing copy of cacti to have notification functionalities, which require me to install thold.

Reading through, I realise I need Settings and as a pre-requisite, Plugin Architecture.

I install PA by copying the pre-patch files to overwrite my existing one.
Then I port pa.sql into the current cacti db.

I then load "settings" and "thold" into the plugin folders.

But doing so will cause cacti not to load (blank screen).
http error log shows the following
Code:

PHP Fatal error:  Call to undefined function settings_version() in /var/www/cacti/plugins/thold/setup.php on line 74


I commented thold from global.php, and the site loads normally.
If I commented settings, and reinstate thold, the site loads normally too.. just that this time under "Settings", there's a Alert/Thold tab.
It is to configure the default settings.

But I don't see anywhere to configure the actual settings for threshold for my individual devices... or is it not suppose to do that?

some questions:

1) did I install the plugin architecture correctly? overwrite with pre-patch file and then insert pa.sql

2) do I need to do anything to install the plugin 'settings'? i just copied it to the plugins folder but i don't see any changes to my settings when I load cacti (without thold yet)

3) my thold shows up in settings even though settings is commented in global.php.

Is that normal? Also, where can I configure it to individual device's needs?


Lastly, in case you're wondering, I did put $plugin in proper order. i.e. settings first then thold.

thanks for your attention folks!
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Thu Jun 26, 2008 11:31 pm    Post subject: Reply with quote

hi guys anyone Smile
Back to top
View user's profile
computer_guru7
New User


Joined: 11 Jun 2008
Posts: 23

PostPosted: Fri Jun 27, 2008 2:55 pm    Post subject: Reply with quote

In your global.php or your config.php (which everone has your $plugin[] = 'thold') make sure you have added the line for Settings before the line for THOLD

*** Good ***
$plugin[] = 'Settings';
$plugin[] = 'Thold';


*** Bad ****
$plugin[] = 'Thold';
$plugin[] = 'Settings';
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Sat Jun 28, 2008 4:11 am    Post subject: Reply with quote

i did that already...
unless first letter capitalization is critical? I used all small letters...

machine at office, got to wait till monday to try

is there anything needed to "install" settings?

Or do i just copy it into plugins folder, and then just add it to global/config.php, and thats it?

Lastly, different documentation I read, refers to the config file differently.
I have both config.php and global.php.

The database connection settings is in config.php, but in global.php is where all the plugins settings are. Also, the dB config setup in global.php is default, but my app still work.

Strangely.
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Mon Jun 30, 2008 5:46 am    Post subject: Reply with quote

anyone?

I tried capitalizing the first letter
doing so, with both activated.. no changes
remove 'Settings', tHold appears in Settings
but I still can't find controls for individual devices..

are there suppose to be any in the first place?
Back to top
View user's profile
computer_guru7
New User


Joined: 11 Jun 2008
Posts: 23

PostPosted: Mon Jun 30, 2008 10:07 am    Post subject: thold Reply with quote

Did you import the Thold.sql file? Are you using the latest versions of settings and Thold?
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Mon Jun 30, 2008 10:10 pm    Post subject: Reply with quote

hi there,

thanks for the great tip! Silly me, I didn't realise there was a sql file in the folder all along!

After i ported the sql, there's a Thold tab beside Console and Graph

But on clicking it, it says it requires the 'Settings' plugin.
That is if I enter the following in the global.php
Code:

$plugins[] = 'Settings';


I think its because of the case sensitivity.

I then tried
Code:

$plugins[] = 'settings';


The site won't load (blank) at all if this is set...
No sql file for settings... so am I missing something for settings? I just copied it into plugin folder.

I am using the latest for thold, settings and plugin archietecture
Back to top
View user's profile
computer_guru7
New User


Joined: 11 Jun 2008
Posts: 23

PostPosted: Tue Jul 01, 2008 10:12 am    Post subject: more questions Reply with quote

Does your MySql database have a settings table? Does the console tab have an item on the left that says, "Plugin Management" ?
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Thu Jul 03, 2008 2:52 am    Post subject: Reply with quote

there is a settings table in the database
there is not plugin management on the console tab

but there is a thold tab at the top, together with 'Console' and 'Graph'
Back to top
View user's profile
computer_guru7
New User


Joined: 11 Jun 2008
Posts: 23

PostPosted: Thu Jul 03, 2008 9:35 am    Post subject: use management Reply with quote

If you go into user management and the permissions area. Make sure admin has permissions to plugin management and Tholds.
Back to top
View user's profile
Swakoo
New User


Joined: 25 Jun 2008
Posts: 7

PostPosted: Fri Jul 04, 2008 2:27 am    Post subject: Reply with quote

ah strangely... it isn't selected by default.. but yeah.. i got it.

Now I have a plugin management.

Here'es the interesting thing:
in plugin management, I don't see Thold or Settings.

But currently, the thold tab is available...
but clicking on it just show
"You are missing a dependency for thold, please install the 'Settings' plugin."

strange?
Back to top
View user's profile
computer_guru7
New User


Joined: 11 Jun 2008
Posts: 23

PostPosted: Mon Jul 07, 2008 12:09 pm    Post subject: plugin management Reply with quote

My plugin management does not show Thold or Settings either, but Thold does show up without an error. Only plugins make specifically for the new PA will show up in there. I just thought the problems might be related. Somehow thold is not detecting the settings installation.

what tabs do you have when you click settings from the console tab?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Forums Sitemap