Cacti / plugin_thold

Thold Plugin for Cacti
GNU General Public License v2.0
60 stars 60 forks source link

Thold 1.5.2 CMD PHP ERROR in combination with Cacti 1.2.26 #657

Closed enrikio closed 3 months ago

enrikio commented 6 months ago

Hello, I am having trouble with plugin Thold. It automatically disables itself after a few minutes and returns an error in log bellow. My cacti version is 1.2.26. First I tried plugin version Thold 1.5.2. then Thold version 1.5., but in both cases I get the same error. What could be done regarding this error?

Error from log: 2024-01-12 14:50:04 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold' 2024-01-12 14:50:04 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler()) 2024-01-12 14:50:04 - ERROR PHP ERROR in Plugin 'thold': Uncaught PDOException: There is no active transaction in /var/www/html/cacti/plugins/thold/includes/polling.php:253 Stack trace: #0 /var/www/html/cacti/plugins/thold/includes/polling.php(253): PDO->commit() https://github.com/Cacti/plugin_thold/issues/1 /var/www/html/cacti/lib/plugins.php(231): thold_poller_bottom() https://github.com/Cacti/plugin_thold/issues/2 /var/www/html/cacti/lib/plugins.php(89): api_plugin_run_plugin_hook() https://github.com/Cacti/plugin_thold/issues/3 /var/www/html/cacti/poller.php(917): api_plugin_hook() https://github.com/Cacti/plugin_thold/pull/4 {main} thrown in file: /var/www/html/cacti/plugins/thold/includes/polling.php on line: 253

Thanks!

TheWitness commented 5 months ago

I recommend that you upgrade to the develop version of Thold as this is a thold issue maybe related to a PHP version. I will attempt to tag the 1.8 version early this week as I'm just getting back from my holiday downtime and return to Cacti work.