ExportXMLWordPrintable

    • Type: Patch request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.31, 7.4.16, 8.0.0
    • Component/s: Templates (T)
    • Environment:
      N/A

      Summary

      Network Generic Device by SNMP: Speed item reads ifSpeed, so interfaces above 4.29 Gbit/s report 4294967295

      Component

      Templates

      Affects version/s

      8.0 (official template, unmodified); also present in the 7.x branch

      Environment

      • Zabbix server 8.0 but observed also in older releases
      • Template: Network Generic Device by SNMP, official 8.0 version, unmodified
      • Monitored device: Zyxel USG Flex 700H , SNMPv3 authPriv (SHA/AES) 
      • Affected interface: 10 Gbit/s port at ifIndex 20

      Description

      The Speed item prototype in the "Network interfaces discovery" rule uses net.if.speedifSpeed.{#SNMPINDEX} with OID 1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX} (ifSpeed). IF-MIB defines ifSpeed as a 32-bit gauge that reports its maximum value, 4294967295, for interfaces above that speed, and says ifHighSpeed must be used instead. The Speed item therefore shows the cap for any interface faster than 4.29 Gbit/s.

      The trigger prototypes for bandwidth usage multiply this item by {}{$IF.UTIL.MAX}{}, so their threshold is wrong on those interfaces. The in/out items also use the 32-bit counters (ifInOctets / ifOutOctets) [confirm for your version], which wrap within seconds at 10 Gbit/s.

      Other official templates already use ifHighSpeed with a multiplier of 1000000 (for example Linux by SNMP, where the item is net.if.speedifHighSpeed.{#SNMPINDEX}).

      Steps to reproduce

      1. Link Network Generic Device by SNMP to a host with a 10 Gbit/s interface.
      2. Force discovery of the network interfaces rule.
      3. Compare the Speed item with the device values below.

      Reproduced on a freshly cloned host, so this is not caused by stale items.

      Evidence (device, ifIndex 20)
       
      {{$ snmpget -v3 -l authPriv -u <user> -a SHA -A <authpass> -x AES -X <privpass> <ip> 1.3.6.1.2.1.2.2.1.5.20
      iso.3.6.1.2.1.2.2.1.5.20 = Gauge32: 4294967295

      $ snmpwalk -v3 -l authPriv -u <user> -a SHA -A <authpass> -x AES -X <privpass> <ip> 1.3.6.1.2.1.31.1.1.1.15.20
      iso.3.6.1.2.1.31.1.1.1.15.20 = Gauge32: 10000}}
      Actual result

      Speed item for the 10G interface: 4294967295

      Expected result

      Speed item: 10000000000 (bit/s), from ifHighSpeed with a multiplier of 1000000

      Suggested fix

      • Speed: key net.if.speedifHighSpeed.{#SNMPINDEX}, OID 1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}{}, preprocessing Custom multiplier 1000000
      • Traffic: ifHCInOctets (1.3.6.1.2.1.31.1.1.1.6) and ifHCOutOctets (1.3.6.1.2.1.31.1.1.1.10)
      • Update the dependent trigger prototypes to the new keys

      Workaround (verified)

      In a cloned template, changing the Speed prototype to net.if.speedifHighSpeed.{#SNMPINDEX} with a multiplier of 1000000 makes 10G interfaces report 10000000000 on a freshly discovered host.

      Attachments

      • Redacted snmpget/snmpwalk output above

            Assignee:
            Petro Sklyar
            Reporter:
            Nikos Frangos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: