[SOLVED] Poller broken after Ubuntu upgrade

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

Moderators: Developers, Moderators

Post Reply
Oldskool
Posts: 11
Joined: Tue Aug 11, 2015 4:28 am

[SOLVED] Poller broken after Ubuntu upgrade

Post by Oldskool »

Today I upgraded my Cacti server from the EOL Ubuntu 15.10 to 16.04, the latest LTS version.
This consequently broke my Cacti 0.8.8f install. I upgraded it to 0.8.8h, but it's still broken.

From searching around, I've read reports that Cacti doesn't seem to work with PHP7 yet, which is now the default PHP version on Ubuntu. So, I installed PHP 5.6 alongside PHP7, in the hope to get it up and running again, but it doesn't. The main problem I am facing is that the poller is dead. Whenever I run

Code: Select all

php5.6 poller.php --force -d
from my Cacti directory, it returns:
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/cacti/lib/adodb/adodb.inc.php on line 866
After that, it just starts idling, until it hits the 5 minute maximum exectution time limit and is then killed.
The cronjob also doesn't run (obviously) and keeps throwing this error in cacti.log:
08/03/2016 05:34:59 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
08/03/2016 05:34:59 PM - SYSTEM STATS: Time:298.9329 Method:cmd.php Processes:1 Threads:N/A Hosts:18 HostsPerProcess:18 DataSources:334 RRDsProcessed:0
I've seen more reports about this specific error, but no real fixes or workarounds so far. I'm running PHP5.6 from Ondrej Sury's PHP repository:

Code: Select all

$ php5.6 -v
PHP 5.6.24-1+deb.sury.org~xenial+1 (cli) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
I'm not really sure if I can get the poller up and running again. Any clues?
Last edited by Oldskool on Wed Aug 03, 2016 11:02 am, edited 1 time in total.
Oldskool
Posts: 11
Joined: Tue Aug 11, 2015 4:28 am

Re: Poller broken

Post by Oldskool »

I figured it out, I forgot to update the path to the PHP5.6 binary in my settings (settings.php?tab=path).
The poller now seems to be running again, hope this helps someone with a similar problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests