Can someone please check why the poller.php is not acting ok on php 4.3.10 ?
Running:
Cacti: 0.8.6c
PHP 4.3.10
Apache 1.3.26
MySQL 4.0.22
check the log below on running the poller.php
Notice: Undefined index: id in /local/web/websites/9997282090/www/data/colopanel/poller.php on line 109
Notice: Undefined index: id in /local/web/websites/9997282090/www/data/colopanel/poller.php on line 113
12/26/2004 04:15:56 PM - SYSTEM STATS: Time: 1.0146 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 5, Hosts/Process: 5
as this error it results in: there are no new polling results on my hosts messured.
Please Help!!!
Regards,
problem upgrade to php 4.3.10 poller.php
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Sun Dec 26, 2004 10:17 am
- Location: Rotterdam
- Contact:
problem upgrade to php 4.3.10 poller.php
Silver Internet - stable webhosting
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I suspect that possibly array_merge is failing in 4.3.10. Please edit poller.php and change the following line as follows:
from:
$polling_hosts = array_merge(array(0 => array("id" => "0")), db_fetch_assoc("select id from host where disabled = '' order by id"));
to:
$polling_hosts = db_fetch_assoc("select id from host where disabled = '' order by id");
and see if the poller takes off. If this is the case, I strongly suggest you revert to PHP 4.3.9.
TheWitness
from:
$polling_hosts = array_merge(array(0 => array("id" => "0")), db_fetch_assoc("select id from host where disabled = '' order by id"));
to:
$polling_hosts = db_fetch_assoc("select id from host where disabled = '' order by id");
and see if the poller takes off. If this is the case, I strongly suggest you revert to PHP 4.3.9.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I had the same errors 'Notice: Undefined index ...' when I upgraded from php 5.0.2 to php 5.0.3 (4.3.10 and 5.0.3 have been released at the same time). I had these errors during logon :
- Notice: Undefined index: id in D:\Cacti\Website\auth_login.php on line 87
- Notice: Undefined index: id in D:\Cacti\Website\auth_login.php on line 90
- Notice: Undefined index: must_change_password in D:\Cacti\Website\auth_login.php on line 93
- Notice: Undefined index: login_opts in D:\Cacti\Website\auth_login.php on line 99
I reverted back to php 5.0.2. Don't know if this is a bug in 5.0.3 or an adjustment in php that needs code-changes. I'm checking further.
/tap
- Notice: Undefined index: id in D:\Cacti\Website\auth_login.php on line 87
- Notice: Undefined index: id in D:\Cacti\Website\auth_login.php on line 90
- Notice: Undefined index: must_change_password in D:\Cacti\Website\auth_login.php on line 93
- Notice: Undefined index: login_opts in D:\Cacti\Website\auth_login.php on line 99
I reverted back to php 5.0.2. Don't know if this is a bug in 5.0.3 or an adjustment in php that needs code-changes. I'm checking further.
/tap
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Bump!!
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Win2K3, PHP 4.3.10. Zend 2.5.7.
Only problem I've noticed so far with PHP 4.3.10 is trying to clear the log file. Using cmd.php, it appears to be updating my hosts just fine.
Warning: unlink(././log/cacti.log): Permission denied in c:\auntie\cacti\utilities.php on line 158
Warning: touch(): Utime failed: Permission denied in c:\auntie\cacti\utilities.php on line 159
"Everyone" has read/write rights to the directory where the Cacti log resides.
Only problem I've noticed so far with PHP 4.3.10 is trying to clear the log file. Using cmd.php, it appears to be updating my hosts just fine.
Warning: unlink(././log/cacti.log): Permission denied in c:\auntie\cacti\utilities.php on line 158
Warning: touch(): Utime failed: Permission denied in c:\auntie\cacti\utilities.php on line 159
"Everyone" has read/write rights to the directory where the Cacti log resides.
Who is online
Users browsing this forum: No registered users and 8 guests