[ZBX-16458] Zabbix allows duplicate Host Group names Created: 2019 Aug 03  Updated: 2019 Aug 05  Resolved: 2019 Aug 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Server (S)
Affects Version/s: 4.0.11
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Vadims Kurmis Assignee: Andrei Gushchin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Why Host groups with identical names are allowed?
  2. What was the idea behind this?
  3. Host Groups logically should be as unique identifiers (as host name, as item key)
  4. Now I got Zabbix API JSON string with Hosts and related Groups, but because of "allowed duplicates" I will need to implement ugly logic to search for and automatically rename duplicate names.
  5. With duplicate group names I can't simply take Zabbix API output and build build new JSON for LLD rule, because it will throw error that item prototype already exists.
  6. Consider making host groups as unique identifiers. There seem to be no benefit of allowing duplicates. This only mess up things.
  7. The existing duplicates (which are already added to db) may stay, but "new Host Group add" function could further not allow making duplicate host groups.

Result:
See screenshot...
See log file...
See memory dump...
Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by Andrei Gushchin (Inactive) [ 2019 Aug 05 ]

Hello Vadims,

I cannot reproduce such behavior.
Could you provide exact steps to reproduce that?

Comment by Vadims Kurmis [ 2019 Aug 05 ]

Sorry, this one is a false positive

Generated at Thu Apr 18 11:54:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.