Solved: update 0.4 -> 0.5.1 manage stops working

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Solved: update 0.4 -> 0.5.1 manage stops working

Post by dagonet »

Hi,
after the update of manage 0.4 to 0.5.1 manage stops working.
I am using the manage poller.
In my crontab I have this entry:
*/1 * * * * root /usr/local/bin/php -q /usr/local/apache/htdocs/cacti/plugins/manage/poller_manage.php

I recognized also, that the "Last poll date" is not updated.

Any hints?

Regards
Dagonet
Last edited by dagonet on Sun Dec 02, 2007 11:49 am, edited 1 time in total.
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Solved

Post by dagonet »

Hi,
there was an error in the manage_check.php.
I added
$argv = $_SERVER["argv"];

and changed line 44 to:
for ($i=2;$i<count($argv);$i++)

Regards
Dagonet
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Re: Solved

Post by gilles »

can you tell me which is your version of PHP ?

also in your php.ini, the state of line "register_argc_argv"
dagonet
Cacti User
Posts: 90
Joined: Sat Oct 29, 2005 4:05 pm
Location: Wuerzburg

Re: Solved

Post by dagonet »

gilles wrote:can you tell me which is your version of PHP ?

also in your php.ini, the state of line "register_argc_argv"
Hi Gilles,
my version of php is 5.2.5.
Register_argc_argv is set to off.

But I did change it to on and still did not get the manage_check.php to work.
Always the same message:
undefined array argv
undefined array argc

Regards
Dagonet
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

i think you need to restart your web server
anyways, i have included your code in the next version
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests