[ZBXNEXT-1900] warn users if they have two hosts with same hostname Created: 2013 Sep 10  Updated: 2018 May 28

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Unresolved Votes: 3
Labels: duplicates, hostname
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

sometimes we can end up with two hosts with the same hostname. this is bad (see ZBX-6828 and other issues).
suggested remedy - try to detect this happening when reloading configuration cache. if it is detected, print a warning in the logfile (but continue working).
warning should include : hostname and host ids.

this warning should be printed also when obtaining information for a proxy - if there are two hosts with the same name on that proxy



 Comments   
Comment by Oleksii Zagorskyi [ 2013 Sep 11 ]

Just remember that zabbix proxies are allowed to have the same hostname as zabbix agents.
Related case is ZBX-6746

<richlv> absolutely, the check should be limited to hosts only

Comment by Kim Jongkwon [ 2018 May 28 ]

Yes, duplicated hostname is occurring for various reasons.

I think it is necessary to warn the user to notice.

Generated at Fri Apr 26 11:28:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.