Cacti / plugin_thold

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

THOLD DISABLES EVERY DAY BEFORE MIDNIGHT #663

Closed nicolapiazzi closed 4 months ago

nicolapiazzi commented 4 months ago

I receive these errors every night at same time and at morrning i found thold disabled :

2024-03-06 23:44:12 - ERROR PHP ERROR in Plugin 'thold': Uncaught TypeError: Unsupported operand types: int / string in /var/www/html/cacti/plugins/thold/thold_functions.php:1139 Stack trace: #0 /var/www/html/cacti/plugins/thold/includes/polling.php(399): thold_calculate_percent() #1 /var/www/html/cacti/lib/plugins.php(276): thold_poller_output() #2 /var/www/html/cacti/lib/plugins.php(155): api_plugin_run_plugin_hook_function() #3 /var/www/html/cacti/lib/poller.php(805): api_plugin_hook_function() #4 /var/www/html/cacti/poller.php(780): process_poller_output() #5 {main} thrown in file: /var/www/html/cacti/plugins/thold/thold_functions.php on line: 1139 2024-03-06 23:44:12 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler()) 2024-03-06 23:44:12 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'thold'

Cacti 1.2.26 Thold 1.5.2 Rocky Linux 9.3 Php : 8.3.3

xmacan commented 4 months ago

It is problem between old thold version and php 8.x. IT was fixed. You have to update thold plugin to actual develop branch

nicolapiazzi commented 4 months ago

Yes, develop branch works well thx

Nicola Piazzi Sistemi Informativi [Nuova immagine bitmap] COMET s.p.a. Via Michelino, 105 - 40127 Bologna – Italia Tel. +39 051.6079.293 Cell. +39 347.5027273 www.comet.ithttp://www.comet.it/ www.gruppocomet.ithttp://www.gruppocomet.it/

Da: Petr Macek @.> Inviato: venerdì 8 marzo 2024 09:52 A: Cacti/plugin_thold @.> Cc: Nicola Piazzi @.>; Author @.> Oggetto: Re: [Cacti/plugin_thold] THOLD DISABLES EVERY DAY BEFORE MIDNIGHT (Issue #663) Priorità: Bassa

ATTENZIONE: Messaggio ricevuto dall' esterno del Gruppo Comet. Non aprire link o allegati se non si conosce la fonte della mail e si e' certi che il contenuto sia sicuro.

It is problem between old thold version and php 8.x. IT was fixed. You have to update thold plugin to actual develop branch

— Reply to this email directly, view it on GitHubhttps://github.com/Cacti/plugin_thold/issues/663#issuecomment-1985293702, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6LPZY5OWVZ6CLIQTISHDLYXF33PAVCNFSM6AAAAABEMNCFMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGI4TGNZQGI. You are receiving this because you authored the thread.Message ID: @. @.%20ub.com>> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/Cacti/plugin_thold/issues/663#issuecomment-1985293702", "url": "https://github.com/Cacti/plugin_thold/issues/663#issuecomment-1985293702", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]