Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25545

Autoregistration creates "duplicate" interface when "HostInterfaceItem" parameter is removed from Agent2 configuration

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 6.4.19
    • Proxy (P), Server (S)
    • None

      If you have an autoregistered host (monitored by proxy), initially registered without "HostInterfaceItem", and only an IP interface is present, then everything is working as expected.
      When you add a "HostInterfaceItem" parameter, the same interface gets a DNS name added, and "Connect to" main connection is set to DNS, as expected.
      Afterwards, if "HostInterfaceItem" parameter is removed from Agent2 configuration, a duplicate IP interface is added, and not even switched to be the default one. The first interface is kept as the default one.

      STEPS TO REPRODUCE:
      1. Set up a simple autoregistration action:

      2. Configure Agent2 to connect to a proxy
      3. Configure Agent2 with "HostMetadata" parameter:

      4. Watch the host be created in Zabbix:

      5. Configure "HostInterfaceItem" parameter to have value "system.hostname":

      6. Hosts interface is updated to have a DNS connection:

      7. Remove "HostInterfaceItem" parameter from Agent2 configuration
      8. Watch the host have a "duplicate", useless interface be added:

      EXPECTED:
      The first interface should switch "Connect to" to IP, and perhaps remove the DNS name configuration from the same interface, instead of adding a new one, which is not even set as default interface.
      No second interface should be added.
      In such a scenario Zabbix loses connection to the host, because host is no longer reachable using DNS name , but the DNS interface is left as the default one, even though a secondary interface with IP address is added.

        1. image-2024-11-14-11-20-19-424.png
          9 kB
          Tomass Janis Bross
        2. image-2024-11-14-11-20-53-434.png
          14 kB
          Tomass Janis Bross
        3. image-2024-11-14-11-24-17-921.png
          34 kB
          Tomass Janis Bross
        4. image-2024-11-14-11-25-08-919.png
          14 kB
          Tomass Janis Bross
        5. image-2024-11-14-11-25-53-123.png
          35 kB
          Tomass Janis Bross
        6. image-2024-11-14-11-28-07-700.png
          38 kB
          Tomass Janis Bross

            zabbix.dev Zabbix Development Team
            tbross Tomass Janis Bross
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: