poller.php error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
TomBrown
Posts: 6
Joined: Thu Jun 08, 2006 2:27 pm

poller.php error

Post by TomBrown »

poller-error.log contains the following:

PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0

No graphs are currently working.

Any suggestions on where to look to track this down? I get the same errors when I run poller.php from the command line.
TomBrown
Posts: 6
Joined: Thu Jun 08, 2006 2:27 pm

Post by TomBrown »

cacti.log file:

06/13/2006 02:59:54 PM - SYSTEM STATS: Time:292.6541 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:7 RRDsProcessed:6
06/13/2006 02:59:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
06/13/2006 02:55:02 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id,rrd_name,time,output) values (7,'proc','2006-06-13 14:55:01','89')"
06/13/2006 02:54:16 PM - SYSTEM STATS: Time:254.7486 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:7 RRDsProcessed:18
06/13/2006 02:49:54 PM - SYSTEM STATS: Time:292.5990 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:7 RRDsProcessed:6
06/13/2006 02:49:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
06/13/2006 02:45:02 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "insert into poller_output (local_data_id,rrd_name,time,output) values (6,'users','2006-06-13 14:45:02','5')"
tix6174
Posts: 4
Joined: Sat Jul 01, 2006 12:42 am

Same Errors

Post by tix6174 »

I'm getting the same errors on a Debian system. Seems to be related to a bug in PHP. Everything I've found so far points to increasing the script execution memory size. I'm up to 300M in the php.ini without getting it to work.

I'm still searching, if I find anything I will post here....
tix6174
Posts: 4
Joined: Sat Jul 01, 2006 12:42 am

Too fast on the reply - fix here

Post by tix6174 »

The next entry below this link on a Google search points to this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357518

This seems to be a bug in PHP. The workaround is to modify /usr/share/file/magic.mime to comment out the regex.

This will suppress the message but doesn't seem to get my graphs working again. :( Polling is still occurring but no new data in my graphs.
tix6174
Posts: 4
Joined: Sat Jul 01, 2006 12:42 am

/etc/php/cli/php.ini changes the error

Post by tix6174 »

Ok, did some more searching....
I've up'd the memory_limit in both the apache/php.ini (with no change in the error message) and the cli/php.ini. The cli path finally reflected the change, however I still get the error and no graph updates. I have worked up from 8M in 8M increments to 128M and always just exceed the limit by 10-15 bytes.

It seems that since the Debian package maintainer changed the way libmagic1 can be used to access files that it has broken many programs. I tried to downgrade to libmagic1-4.17-1 (from -2) but there are too many dependancies to be successful. I guess I'll just have to removed everything and stop until this has been fixed in PHP or someone comes up with a workaround since I have exceeded my abilities now.

Ideas anyone??
phipo
Posts: 1
Joined: Wed Nov 23, 2005 8:32 am

Post by phipo »

same problem here - is there a debian bug open? can you provide the bug id?

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests