[ZBX-14406] Discovery macros containing empty values treated different in item names and trigger names Created: 2018 May 29 Updated: 2018 Sep 25 Resolved: 2018 Sep 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.4.8 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | James Cook | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() |
Description |
Steps to reproduce:
Result: Expected: |
Comments |
Comment by Aigars Kadikis [ 2018 May 29 ] |
Just made template generate-items-from-trap.xml Need to assign to host with the name 'receiver'. Send a JSON with: zabbix_sender -z 127.0.0.1 -s receiver -k trap.rule -o '{"data":[{"{#MACRO1}":"space"},{"{#MACRO1}":" "},{"{#MACRO1}":""}]}' The output will be: Did not got "item[ ]" (with plain space inside). How did you perform your scenario? Regards, |
Comment by James Cook [ 2018 Jun 08 ] |
Hi Aigars, Please note the item name should be something like 'This is a test item ({#MACRO1})' The brackets will allow you to see the inserted space in the name as it is created ie 'This is a test item ( )' where as I think it should read as 'This is a test item ()'. Please note the item key should be something like 'test.item{#MACRO}'. The item key does work correctly and produces 'test.item[]' Regards James |
Comment by Alexander Vladishev [ 2018 Jun 11 ] |
We can not reproduce this problem on mentioned version 3.4.8 and Zabbix 3.4.10. The item name was created without a space. What version of Zabbix are you using? |
Comment by James Cook [ 2018 Jun 29 ] |
We are running 3.4.8... Let me check again please and I will forward more information... |