Cacti/plugin_monitor

Deprecated function

jackouille-ch opened this issue · 2 comments

Hi,

I'm running Cacti 1.2.25 on CentOS 9 (Rocky to be precise) and PHP 8.3.1
When Monitor 1.8 is activated, I receive the following errors:
2024-01-11 23:16:15 - CMDPHP PHP ERROR Backtrace: (/plugins/monitor/poller_monitor.php[113]:CactiErrorHandler())
2024-01-11 23:16:15 - ERROR PHP DEPRECATED in Plugin 'monitor': strlen(): Passing null to parameter #1 ($string) of type string is deprecated in file: /usr/share/cacti/plugins/monitor/poller_monitor.php on line: 113

These lines are displayed each minute (poller set at 1 minute).

xmacan commented

Please update to newer monitor plugin version 2.6

Ok, installed Monitor version 2.7, it took about 5 minutes untill error messages disappear, thanks !