Installed new box with Ubuntu 16.04LTS, apt-get install cacti.. all good seems to work. Install a couple plugins (thold, discovery) all seems ok. Setup Discovery Template, setup scan.. wait...
No devices discovered. Check logs:
poller-error.log:PHP Fatal error: Uncaught Error: Call to undefined function mysql_query() in /usr/share/cacti/site/plugins/discovery/setup.php:349
poller-error.log:#0 /usr/share/cacti/site/lib/plugins.php(60): discovery_poller_bottom(Array)
poller-error.log: thrown in /usr/share/cacti/site/plugins/discovery/setup.php on line 349
Go look at line 349
$result = mysql_query($sql) or die (mysql_error());
According to google... now we have to use mysqli_query with PHP7... but it takes two arguments... so I lazily punted to the board.
/rh
Discovery Plugin, Ubuntu 16.04LTS, PHP7
Moderators: Developers, Moderators
Re: Discovery Plugin, Ubuntu 16.04LTS, PHP7
Current version of Cacti does not work with PHP7. We have it fixed in Cacti 1.0, but until that is released, you will have to use an older version of PHP.
Re: Discovery Plugin, Ubuntu 16.04LTS, PHP7
I have the current version of Cacti (0.8.8h) running with PHP7. The discovery plugin works like a charm.
Who is online
Users browsing this forum: No registered users and 1 guest