Cacti / plugin_monitor

Monitor Plugin for Cacti
GNU General Public License v2.0
36 stars 39 forks source link

Deprecated function #163

Closed jackouille-ch closed 6 months ago

jackouille-ch commented 6 months ago

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 6 months ago

Please update to newer monitor plugin version 2.6

jackouille-ch commented 6 months ago

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