[ZBX-18770] LLD Item prototype: dependant item macro Invalid key Created: 2020 Dec 15  Updated: 2020 Dec 17

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 5.0.6
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: itcbsops Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Prod



 Description   

Creation of an item prototype of type dependant item is not possible because LLD macros are not accepted in item Key.

Example:

Cannot update item prototype
Invalid key "K_ACK_report_2_{#PELENV}_

{#MATCH}_2" for item prototype "Kondor_ACK_report_{#PELENV}

_
{#MATCH}

2" on "TMPL_ITCBSOPS_KONDOR": incorrect syntax near "{#PELENV}

{#MATCH}

_2".



 Comments   
Comment by itcbsops [ 2020 Dec 15 ]

I forgot to mention: if I remove the LLD Macros from the Item Key, then of course Zabbix can't create the items and hows this :

Cannot create item: item with the same key "K_ACK_report_2" already exists.
Cannot create item: item with the same key "K_ACK_report_2" already exists.
Cannot create item: item with the same key "K_ACK_report_2" already exists.
Cannot create item: item with the same key "K_ACK_report_2" already exists.

Comment by itcbsops [ 2020 Dec 15 ]

I found the solution.
The Item Key of a dependant item in an item prototype must be with brackets '[]'.
I made it work as expected by changing the Item Key to :

KondorACKCount[{#PELENV},{#MATCH}]

This should be mentionned in the documentation.
I'm not sure what is the purpose of imposing the brackets...

Generated at Wed Jun 03 19:55:57 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.