xmacan / plugin_snver

Small Cacti plugin - try find serial numbers, versions and important information about devices
GNU Lesser General Public License v2.1
2 stars 0 forks source link

ERROR PHP DEPRECATED #10

Closed Fabrice35 closed 1 year ago

Fabrice35 commented 1 year ago

Hello,

I have just reinstalled cacti with the snver plugin. There is an error that I can't fix:

2023-05-26 14:10:42 - ERROR PHP DEPRECATED in  Plugin 'snver': Invalid characters passed for attempted conversion, these have been ignored in file: /opt/cacti/plugins/snver/functions.php  on line: 164
2023-05-26 14:10:42 - CMDPHP PHP ERROR Backtrace:  (/poller.php[913]:api_plugin_hook(), /lib/plugins.php[83]:api_plugin_run_plugin_hook(), /lib/plugins.php[225]:plugin_snver_poller_bottom(), /plugins/snver/setup.php[140]:plugin_snver_get_info(), /plugins/snver/functions.php[164]:hexdec(), CactiErrorHandler())

I'm using PHP version 8.0.27

Can you help me?

thanks BB

Fabrice35 commented 1 year ago

The problem must have been linked to Linkdiscovery's dependencies. After installing the Thold and Monitor plugins, I have no more errors in the logs...

Best regards, BB

xmacan commented 1 year ago

Strange. On this line is convert year from hex do decadic. It seems that your device sent incorrect data