I use cacti 1.2.24, php 8.2.7 and rrdTool 1.7.2.+
When I try to import some devices using add_device script, I got many errors in the logs :
2024-02-13 10:06:35 - CMDPHP PHP ERROR Backtrace: (/usr/share/cacti/cli/add_device.php[457]:api_device_save(), /lib/api_device.php[1131]:api_device_update_host_template(), /lib/api_device.php[1289]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[822]:cacti_snmp_session_walk(), /lib/snmp.php[445]:CactiErrorHandler())
2024-02-13 10:06:35 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /usr/share/cacti/site/lib/snmp.php on line: 445
2024-02-13 10:06:35 - CMDPHP PHP ERROR Backtrace: (/usr/share/cacti/cli/add_device.php[457]:api_device_save(), /lib/api_device.php[1131]:api_device_update_host_template(), /lib/api_device.php[1289]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[822]:cacti_snmp_session_walk(), /lib/snmp.php[445]:CactiErrorHandler())
2024-02-13 10:06:35 - ERROR PHP DEPRECATED: Creation of dynamic property phpsnmp\SNMP::$value_output_format is deprecated in file: /usr/share/cacti/site/lib/snmp.php on line: 445
2024-02-13 10:06:35 - CMDPHP PHP ERROR Backtrace: (/usr/share/cacti/cli/add_device.php[457]:api_device_save(), /lib/api_device.php[1131]:api_device_update_host_template(), /lib/api_device.php[1289]:run_data_query(), /lib/data_query.php[106]:query_snmp_host(), /lib/data_query.php[822]:cacti_snmp_session_walk(), /lib/snmp.php[445]:CactiErrorHandler())
Despite the errors, the equipment appears in the devices section and are up.
Can you help me please.
Error when I import devices
Moderators: Developers, Moderators
Re: Error when I import devices
Tested on 1.2.26 and cannot reproduce it. Please update to 1.2.26 (or actual github 1.2.x branch - it will be 1.2.27 version). We have fixed few php 8.x things in last weeks.
Let the Cacti grow!
Re: Error when I import devices
Ok, thanks.
I use the package version on debian, there is no update available. How can I upgarde ?
I use the package version on debian, there is no update available. How can I upgarde ?
Re: Error when I import devices
we have great documentation:
https://docs.cacti.net/Upgrading-Cacti.md
https://docs.cacti.net/Upgrading-Cacti.md
Let the Cacti grow!
Who is online
Users browsing this forum: No registered users and 1 guest