[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: PNG File image-2019-09-24-10-31-11-117.png     PNG File image-2019-09-24-10-51-01-217.png    
Team: Team D
Sprint: Sprint 61 (Feb 2020)

 Description   

Steps to reproduce:

  1. Hosts > Mass update > Tags > Add ... Tag: test Value: bla
  2. Check if tag added to hosts = Tag added
  3. Hosts > Mass update > Tags > Add ... Tag: test Value: blub
  4. Check if values overwritten = two test tags with bla and blub

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:

  • Event tags in 4.4, 5.0
  • Templates - > Mass update in 4.4, 5.0
  • Hosts -> Mass update in 4.4, 5.0
  • Triggers -> Mass update in 4.4, 5.0
  • Configuring a trigger in 4.4, 5.0
Generated at Sat Apr 04 00:01:12 EEST 2026 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.