[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [php-weathermap] Cacti plugin architecture problems



I just tried setting up Cacti and then applying the patches and I get the same when I login (though I can login), and when I run the poller:

Warning: reset() [function.reset]: Passed variable is not an array or object in /opt/local/share/cacti/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /opt/local/share/cacti/lib/functions.php on line 147
Warning: reset() [function.reset]: Passed variable is not an array or object in /opt/local/share/cacti/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /opt/local/share/cacti/lib/functions.php on line 147
Warning: reset() [function.reset]: Passed variable is not an array or object in /opt/local/share/cacti/lib/functions.php on line 146
Warning: Variable passed to each() is not an array or object in /opt/local/share/cacti/lib/functions.php on line 147

Also, the Cacti images are broken after the PA patches but I found a tip on how to fix that by editing include/plugins.php and changing this:

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

to this:

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


I hope someone can figure out the remaining problem.  A note by the developer in the PA forum says for 2.0 we should edit global.php rather than config.php but it doesn't elaborate and this makes no sense to me, and doesn't work anyway so I'm baffled.

________________________________________
From: Howard Jones [howie@xxxxxxxxxx]
Sent: Friday, February 22, 2008 3:52 PM
To: php-weathermap@xxxxxxxxxx
Subject: Re: [php-weathermap] Cacti plugin architecture problems

Mark Duling wrote:
> I am preparing to install php waethermap, but I'm stuck on getting the
> Cacti plugin architecture working.  I know there is a support forum for
> that, but it seems to be in disarray and I'm desperate.  The documentation
> is out of date and people that get it working don't seem to give helpful
> information on how they fixed it.  Can anyone here help?
>
> I've got the patches for PA 2.0 applied to a new Cacti 0.87b installation
> with no errors and imported the pa.sql schema into the cacti DB.  Yet when
> I go through the Cacti "new install" configuration process I get all sorts
> of errors like others have reported.
> http://cactiusers.org/forums/post5078.html
>
> Can anyone offer tips on how they've setup Cacti plugin architecture?  I
> use Apache 2.2.x and PHP 5.2.x.  Thanks.
>
Generally speaking, I'd install Cacti first, do the initial install, and
*then* copy over or patch for the plugin architecture...

Copyright 1994-2005, by Howard Jones. howie@thingy.com