poller.php - Compilation Failed

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

Moderators: Developers, Moderators

Post Reply
badger
Posts: 8
Joined: Tue Apr 05, 2005 7:47 pm

poller.php - Compilation Failed

Post by badger »

Fedora Core 1
cacti 0.8.6c
php 4.3.8
mysql 3.23
apache 2.0.47

When I activate certain data sources, I start getting the following message when running polling.php.

<b>Warning</b>: Compilation failed: range out of order in character class at offset 29 in <b>/var/www/html/cacti/lib/poller.php</b> on line <b>215</b><br />

Since this warning is just about as generic as you can get, I had to delete every graph and data source to try to track down which graphs are causing the problems. The two I've found so far are:

Localhost Load Average
MySQL command statistics

Interestingly enough, local host load average actually graphs properly (as far as I can tell), but command statistics does not. It does not even create an rrd file in the rra dir. The MySQL connections script does work properly, however, so this is not a connectivity or permissions issue.

I have had nothing but trouble with installling this app and I'm at the end of my rope here. The logs and error reporting have been utterly worthless up to this point, so if there's a way to turn up the usefulness of these that I'm missing, I'd appreciate help in that area as well.

Thanks in advance.
badger
Posts: 8
Joined: Tue Apr 05, 2005 7:47 pm

Post by badger »

BTW, this is line 215 in the script.

} else {

It is part of this if statement.

if ($last_host_id != $host_id) {
$last_host_id = $host_id;
$first_host = true;
$recached_hosts = $recached_hosts + 1;
} else {
$first_host = false;
}
badger
Posts: 8
Joined: Tue Apr 05, 2005 7:47 pm

Post by badger »

Updating...

I found the config page to turn up verbosity (duh), but it's had no effect on the log content (ugh).
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

I have the same issue on a server recently patched with last four official patches. most graphs work as they should. Strange.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Known issue.... Please back off the patch "Period in Output Field Name", it is causing the problem. That patch is being replaced with a working one this week.

Badger, btw, that is not the correct script. It is line 215 in lib/poller.php. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
badger
Posts: 8
Joined: Tue Apr 05, 2005 7:47 pm

Post by badger »

rony wrote:Known issue.... Please back off the patch "Period in Output Field Name", it is causing the problem. That patch is being replaced with a working one this week.

Badger, btw, that is not the correct script. It is line 215 in lib/poller.php. :)
Ah, helps to read the whole thing. Can you give instructions, or link to instructions, on backing out this patch? I've never figured out how to use the patch command properly.
EDIT: Forgive my drain bamage, I untarred the source. :oops:

Thanks!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, since the patch only affects one file, you can just untar cacti into another directory and copy lib/poller.php to the lib directory in your cacti installation.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests