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
After that, it just starts idling, until it hits the 5 minute maximum exectution time limit and is then killed.PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/cacti/lib/adodb/adodb.inc.php on line 866
The cronjob also doesn't run (obviously) and keeps throwing this error in cacti.log:
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: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
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