[ZBX-21130] mandatory usage of LLD MACRO in item prototype Created: 2022 May 30 Updated: 2024 Apr 10 Resolved: 2022 Sep 12 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Frontend (F), Server (S) |
Affects Version/s: | 4.0.40, 5.0.23, 6.0.4 |
Fix Version/s: | 6.4 (plan) |
Type: | Documentation task | Priority: | Major |
Reporter: | Andrey Tocko (Inactive) | Assignee: | Martins Valkovskis |
Resolution: | Fixed | Votes: | 3 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
||||
Issue Links: |
|
||||
Team: | |||||
Sprint: | Sprint 92 (Sep 2022) | ||||
Story Points: | 1 |
Description |
On a discovery phase item prototype without LLD.MACRO throws an error "Item key already exists". Even if there is only single item discovered, it is not created. Did tests on all current LTS versions(4,5,6) and behavior is the same: No LLD.MACRO in item key - NO ITEM on discovery(not even single) For now only workaround is to intercept lld by JS preporcessing and insert empty value to custom lld.macro. Then use id as parameter of a key. But it limits usage of items without parameters. Test template with trappers discovery starting v4: lld-single_4.xml ---------------------------------------- In case if this behavior is by design : -------------------------------------------------------------------------------- A warning or validation could be also added to Frontend on prototype creation windows. |
Comments |
Comment by Dimitri Bellini [ 2022 May 30 ] |
I would like to mention a possible user scenario. |
Comment by Alexander Vladishev [ 2022 Sep 03 ] |
Items and item prototypes cannot have the same keys. Otherwise, it will not be possible to address them from the trigger expression of prototypes in any way. |
Comment by Dimitri Bellini [ 2022 Sep 05 ] |
Please keep in mind that we faced the same problem of "Item key already exists" when the LLD provide "only a single" result (as I well remember Thanks so much |
Comment by Martins Valkovskis [ 2022 Sep 09 ] |
Updated documentation for the supported versions mentions the mandatory use of LLD macros in prototype item keys: 4.0, 5.0, 6.0, 6.2, 6.4. |