Error when I import devices

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
networkk
Posts: 24
Joined: Tue Feb 13, 2024 6:44 am

Error when I import devices

Post by networkk »

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.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Error when I import devices

Post by macan »

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!
networkk
Posts: 24
Joined: Tue Feb 13, 2024 6:44 am

Re: Error when I import devices

Post by networkk »

Ok, thanks.
I use the package version on debian, there is no update available. How can I upgarde ?
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Error when I import devices

Post by macan »

we have great documentation:
https://docs.cacti.net/Upgrading-Cacti.md
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest