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

Unmatched snmp trap if host unavailable

XMLWordPrintable

    • Team A
    • S24-W8/9, S24-W10/11
    • 2

      Steps to reproduce:

      1. Default configuration, no proxy.
      2. There is an SNMP host with an element of the SNMP trap type. If it is online, then traps are defined by the element. If it is offline and marked as unavailable, then after a while traps are not detected by the element. Unmatched appears in the logs. This is due to the fact that in the cache, with each iteration, inactive addresses are removed from the if_snmpaddr list.

      Result:

        8854:20240204:202546.156 DCsync_configuration() interfaces_snmp : 41 (67 slots)
        8854:20240204:202546.156 DCsync_configuration() if_snmpitms: 29 (43 slots)
        8854:20240204:202546.156 DCsync_configuration() if_snmpaddr: 40 (67 slots)
        8854:20240204:202556.239 DCsync_configuration() interfaces_snmp : 41 (67 slots)
        8854:20240204:202556.239 DCsync_configuration() if_snmpitms: 29 (43 slots)
        8854:20240204:202556.239 DCsync_configuration() if_snmpaddr: 39 (67 slots)

       
      If in \src\libs\zbxcacheconfig\dbconfig.c delete:

                      /* remove old address->interfaceid index */
              if (0 != found && INTERFACE_TYPE_SNMP == interface->type)
                  dc_interface_snmpaddrs_remove(interface);

      then traps are always bound to an element, regardless of the state of the host.
      The logs show that if_snmpaddr is not reduced.

       14914:20240207:095111.643 DCsync_configuration() interfaces_snmp : 41 (67 slots)
       14914:20240207:095111.643 DCsync_configuration() if_snmpitms: 29 (43 slots)
       14914:20240207:095111.643 DCsync_configuration() if_snmpaddr: 41 (67 slots)

       

            dgoloscapov Dmitrijs Goloscapovs
            MasterHome Alexey Dedyuhin
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: