-
Problem report
-
Resolution: Fixed
-
Major
-
6.0.28, 6.4.13, 7.0.0beta2
-
None
-
Docker/Alpine/6.4.13/ARM64
-
S24-W18/19
-
0.5
Steps to reproduce:
- Create host with no templates, add manually some discovery rule without a template with some LLD macro (for example just use 'Mounted filesystem discovery' from 'Linux by Zabbix agent active')
- Create auto-registration rule to add same 'Linux by Zabbix agent active' template, which will put template with same LLD rule on the already added host (same host should be modified by the auto-registration rule).
Result:
6:20240405:101003.505 Starting Zabbix Server. Zabbix 6.4.13 (revision 6e531c4). 6:20240405:101003.505 ****** Enabled features ****** 6:20240405:101003.505 SNMP monitoring: YES 6:20240405:101003.505 IPMI monitoring: YES 6:20240405:101003.505 Web monitoring: YES 6:20240405:101003.505 VMware monitoring: YES 6:20240405:101003.505 SMTP authentication: YES 6:20240405:101003.505 ODBC: YES 6:20240405:101003.505 SSH support: YES 6:20240405:101003.505 IPv6 support: YES 6:20240405:101003.505 TLS support: YES 6:20240405:101003.505 ****************************** 6:20240405:101003.505 using configuration file: /etc/zabbix/zabbix_server.conf 6:20240405:101003.516 current database version (mandatory/optional): 06040000/06040026
zabbix_server [216]: ERROR [file and function: <template_item.c,link_template_lld_macro_paths>, revision:6e531c4, line:3092] Something impossible has just happened. 216:20240405:101005.553 backtrace is not available for this platform zabbix_server [216]: ERROR [file and function: <template_item.c,link_template_lld_macro_paths>, revision:6e531c4, line:3092] Something impossible has just happened. 216:20240405:101005.553 backtrace is not available for this platform 216:20240405:101005.554 [Z3008] query failed due to primary key constraint: [1062] Duplicate entry '47316-{#FSNAME}' for key 'lld_macro_path.lld_macro_path_1' 216:20240405:101005.554 cannot link template(s) (null)
Using Frontend it's possible to apply the template and manually added discovery rule will be templated.
Expected:
'Something possible has just happened' in the log file for the auto-registration action.
- caused by
-
ZBXNEXT-6679 Improve performance of template linkage on Zabbix server
- Closed