ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.4.13, 7.4.14
    • None
    • Environment:

      After upgrading to Zabbix 7.4.14, newly auto-registered hosts are created twice:
      two rows in the `hosts` table with the same `host` name but different `hostid`,
      both monitored by the same proxy group.
      The server generates two auto-registration events for the same `autoreg_hostid`, a few seconds apart, before the first event's action (host creation) has completed.
      This looks like a race condition between event generation and asynchronous action processing.
       
      Steps to reproduce:

      1. Configure a proxy group with 2 active proxies; configure agents to point to both proxies in `ServerActive`; enable an auto-registration action on host metadata.
      2. Start a new agent (host unknown to Zabbix) so that it sends its first active
        check / registration data.

      3. Wait for auto-registration and check the list of hosts and the auto-registration events.

      Reproduces intermittently (observed on ~1/3 of hosts in one test installation), consistent with a race condition
      Result:

      1. Duplicate hosts: two rows in the `hosts` table with identical `host` name but different `hostid`, both with `monitored_by` = proxy group (same `proxy_groupid`, `proxyid` NULL).
        Both appear in Data collection → Hosts.
      2. Duplicate auto-registration events (`events`, source=2): two events referring to the same `autoreg_hostid`, 2 seconds apart, both with `value=1`.
        Expected:

      3. Only one host created per auto-registered host.

       

            Assignee:
            Zabbix Support Team
            Reporter:
            Gabriel Rosace
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: