[ZBX-16673] Duplicate tags with mass add Created: 2019 Sep 24 Updated: 2024 Apr 10 Resolved: 2020 Feb 17 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Frontend (F) |
| Affects Version/s: | 4.2.6 |
| Fix Version/s: | 5.0 (plan) |
| Type: | Documentation task | Priority: | Trivial |
| Reporter: | Markus Fischbacher | Assignee: | Marina Generalova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | tags | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Team: | |
| Sprint: | Sprint 61 (Feb 2020) |
| Description |
|
Steps to reproduce:
Result: |
| Comments |
| Comment by Markus Fischbacher [ 2019 Sep 24 ] |
|
Double checked if it's intentional - it's also possible in single host update. There's only an error if you add an tag with same tag/value.
So this might be more a discussion if it's good practice to allow multiple same tags than an "Problem report". So here's my view: Commonly tags are seen as key/value pairs and keys are defined as unique identifiers. So I would say this route should be followed by Zabbix too. It also may come to misbehaviour in queries, event correlations or maintenance plans. |
| Comment by DaneT [ 2019 Sep 24 ] |
|
Currently it is possible yes and this is how it was designed to work |
| Comment by Valdis Murzins [ 2019 Sep 24 ] |
|
As mbuhholcs said, this is an expected behavior for tags in Zabbix. We allow tags with same name, but different values (or no value at all). It is only not allowed to have multiple instances of same tag:value pair. But although it works as designed, it is not properly documented. This behavior should be explained in Event tags page. |
| Comment by Markus Fischbacher [ 2019 Sep 24 ] |
|
I see and perfectly understand. To be true, I tested the behaviour with Maintenance windows (which is also not intuitive at first) and actually can see some benefits. But it should be documented - it may even need an short text on frontend? |
| Comment by Marina Generalova [ 2020 Feb 12 ] |
|
Documentation updated: |