Problemas PIA 2.0 + Cacti 0.8.7b

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
augustobsb
Posts: 5
Joined: Fri Mar 07, 2008 3:25 pm

Problemas PIA 2.0 + Cacti 0.8.7b

Post by augustobsb »

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

Code: Select all

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

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

Code: Select all

$plugins = array();
$plugins[] = 'thold';
$plugins[] = 'ntop';
$plugins[] = 'monitor';
The plugin not show on CACTI, why?

And the login screen, this error is displayed:

Code: Select all

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!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

Thresold plugin needs the Settings plugin : http://cactiusers.org/wiki/TholdDocs
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.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

By the way, moving to the Thresold forum.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
incudie
Posts: 21
Joined: Thu Mar 06, 2008 12:03 pm

Re: Problemas PIA 2.0 + Cacti 0.8.7b

Post by incudie »

augustobsb wrote: And the login screen, this error is displayed:

Code: Select all

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?
tekbot
Posts: 49
Joined: Tue Jun 07, 2005 7:42 pm
Location: Venice, CA

Post by tekbot »

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
peecee
Cacti User
Posts: 146
Joined: Tue Feb 26, 2008 7:26 am

Post by peecee »

Two points...

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

2. You need to grant yourself permission to the thold "realm".
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests