-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
Duplicated on Zabbix Server, Proxy, and Agent version 2.4.8, but probably possible in all 2.x+ versions. All LInux environment. MySQL db.
I have automated my host creation by having a Chef recipe install the agent and call the Zabbix API to create and configure my hosts. However, I also had a leftover Auto Registration rule that matched the metadata. I ended up with two hosts with the exact same name added to the DB.
This seems to be a race condition of some sort. See attached debug level 4 server log.
Setting this as minor since few people are going to encounter this situation and it's easily avoided by getting rid of the auto registration rule. Mostly wanted to make you aware of a path to having duplicate hosts in case it suggests other concerns.
+--------+--------------+--------------------------+--------+--------------------------+-------+------------+-------------------------------------------------+ | hostid | proxy_hostid | host | status | name | flags | templateid | description | +--------+--------------+--------------------------+--------+--------------------------+-------+------------+-------------------------------------------------+ | 10425 | 10237 | duplicate.test.server.us | 0 | duplicate.test.server.us | 0 | NULL | Managed by Chef - Any changes will be reverted. | | 10427 | 10237 | duplicate.test.server.us | 0 | duplicate.test.server.us | 0 | NULL | | +--------+--------------+--------------------------+--------+--------------------------+-------+------------+-------------------------------------------------+
- duplicates
-
ZBX-4134 It is possible to create duplicate objects using API in parallel requests
- Confirmed