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

Network discovery incorrectly overwrites existing host interface IP addresses when multiple IP addresses have the same sysName

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.0.20, 7.0.21
    • Proxy (P), Server (S)
    • Support backlog

      When network discovery detects multiple IP addresses with the same SNMP sysName, the existing host's main interface IP address gets overwritten.

      Steps to reproduce:

      1. Configure a discovery rule with:
        Type: SNMP agent
        SNMP OID: 1.3.6.1.2.1.1.5.0 (sysName)
        Uniqueness criteria: SNMP sysName
      2. Have a device with multiple IP addresses that return the same sysName via SNMP
      3. Run the discovery rule
      4. Observe that the discovered host's interface IP address gets overwritten
        Detected interfaces in 7.0.16

        Main IP address gets overwritten in 7.0.17

        Result:
        Zabbix Server: 7.0.17
        Previously working version: 7.0.16
        Root cause appears to be ZBX-25545 changes to zbx_db_add_interface() function.
        This was intended for autoregistration but affects network discovery as well.
        Autidilog excerpt:
        Description: 192.168.11.242
        
        host.interfaces[48].details.ip: 192.168.11.196 => 192.168.11.202

            zabbix.dev Zabbix Development Team
            yIn Syusei YIn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: