Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Problemas PIA 2.0 + Cacti 0.8.7b

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold)
Author Message
augustobsb



Joined: 07 Mar 2008
Posts: 5

PostPosted: Fri Mar 07, 2008 3:28 pm    Post subject: Problemas PIA 2.0 + Cacti 0.8.7b Reply with quote

Hi,
I installed the plugin architecture on Cacti 0.8.7b and modified the include/plugin.php

Code:
$config['url_path'] = '/cacti/';
define('URL_PATH', $config['url_path']);



But, when i change the include/global.php and add the line:

Code:
$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'ntop';
$plugins[] = 'monitor';


The plugin not show on CACTI, why?

And the login screen, this error is displayed:
Code:

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147



How plugins work now?
It's diferrent from documentation?

Thanks!
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2326
Location: Sophia-Antipolis, France

PostPosted: Mon Mar 10, 2008 3:04 am    Post subject: Reply with quote

Hi

Thresold plugin needs the Settings plugin : http://cactiusers.org/wiki/TholdDocs
Quote:
A few important things to remember. Thold requires the Settings plugin. In Cacti's config.php, add the Settings plugin BEFORE the thold plugin, otherwise thold will not be able to detect it.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2326
Location: Sophia-Antipolis, France

PostPosted: Tue Mar 11, 2008 2:42 am    Post subject: Reply with quote

By the way, moving to the Thresold forum.
Back to top
incudie



Joined: 06 Mar 2008
Posts: 21

PostPosted: Tue Mar 11, 2008 11:13 am    Post subject: Re: Problemas PIA 2.0 + Cacti 0.8.7b Reply with quote

augustobsb wrote:

And the login screen, this error is displayed:
Code:

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 146

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 147



I don't think those errors have anything to do with Thold.

I have the exact same error but without any plugins, only after installing 0.8.7.b with Plugin Architecture 2.0 (Apache 2, PHP5).

I have noticed a handful of people with this configuration having this error just after install PA2, unfortunately I have yet to see a fix for it.

Has anyone else had this problem too?
Back to top
tekbot



Joined: 07 Jun 2005
Posts: 48
Location: Venice, CA

PostPosted: Tue Mar 11, 2008 12:20 pm    Post subject: Reply with quote

augustobsb,
I've had similar issues in the past. I got around them by turning display_errors=Off in your php.ini. That may or may not work, but it's helped me in the past.

Don't forget to restart apache after you've changed php.ini.

--tekbot
Back to top
peecee
Cacti User


Joined: 26 Feb 2008
Posts: 79

PostPosted: Wed Mar 12, 2008 8:47 am    Post subject: Reply with quote

Two points...

1. As has already been stated, you need the Settings plugin

2. You need to grant yourself permission to the thold "realm".
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Threshold) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group