ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 8.0.0
    • Component/s: None
    • None

      TP-LINK by SNMP template 8.0 – Network interfaces discovery fails on EAP653 due to unsupported IF-MIB OIDs

      Component: Templates
      Template: TP-LINK by SNMP
      Zabbix version: 8.0.0
      Affected device: TP-Link EAP653 UR(EU) v1.0

      Description

      After upgrading the official TP-LINK by SNMP template from version 6.4-0 to version 8.0, network interface discovery stopped working on my TP-Link EAP653 Access Point.

      Before upgrading the template, network interfaces were discovered correctly.

      After upgrading, all previously discovered interface items disappeared and no new interfaces were discovered.

      The discovery rule reported errors such as:

      {{Cannot accurately apply filter: no value
      received for macro "{#IFALIAS}".}}

      Root cause

      The new template uses SNMP walk to JSON preprocessing and expects several IF-MIB OIDs to be available.

      However, the EAP653 does not expose all of these OIDs.

      Test results:

      Macro OID EAP653
      {#IFALIAS}|1.3.6.1.2.1.31.1.1.1.18|Not available|
      |{#IFNAME}|1.3.6.1.2.1.31.1.1.1.1|Not available|
      |{#IFDESCR}|1.3.6.1.2.1.2.2.1.2|Available|

      The same OIDs are available on my TP-Link switch, so the template works correctly on the switch but fails on the Access Point.
      h2. Workaround

      I made the following modifications:
      # Changed the {{{#IFNAME}}} mapping to use 1.3.6.1.2.1.2.2.1.2 (IF-MIB::ifDescr).

      # Added a JavaScript preprocessing step after SNMP walk to JSON to populate missing {{{#IFALIAS}

      }} with an empty string.

      1. The discovery rule now successfully discovers interfaces on the EAP653.

      Expected result

      The template should handle optional IF-MIB objects gracefully.

      Missing ifAlias or ifName values should not prevent network interface discovery.

      Ideally, the template should:

      • Use ifDescr as a fallback when ifName is unavailable.
      • Treat ifAlias as optional.
      • Populate missing LLD macros with empty values where appropriate.
      • Continue supporting switches that provide all IF-MIB objects.

      Actual result

      Network interface discovery fails when the device does not expose ifAlias and/or ifName.

      Request

      Could the official TP-LINK by SNMP template be modified to support TP-Link Access Points that expose only a subset of the standard IF-MIB objects?

      This would allow the same template to work with both TP-Link switches and Access Points.

       

      Additional data

      snmpwalk to AP

      root@zabbix:~# snmpwalk -On -v2c -c public <ip> 1.3.6.1.2.1.31.1.1.1.1

      .1.3.6.1.2.1.31.1.1.1.1 = No Such Object available on this agent at this OID
      root@zabbix:~# snmpwalk -On -v2c -c public <ip> 1.3.6.1.2.1.31.1.1.1.18
      .1.3.6.1.2.1.31.1.1.1.18 = No Such Object available on this agent at this OID
      root@zabbix:~# snmpwalk -On -v2c -c public <ip> 1.3.6.1.2.1.2.2.1.2
      .1.3.6.1.2.1.2.2.1.2.1 = STRING: lo
      .1.3.6.1.2.1.2.2.1.2.2 = STRING: eth0
      .1.3.6.1.2.1.2.2.1.2.3 = STRING: sit0
      .1.3.6.1.2.1.2.2.1.2.4 = STRING: br0
      .1.3.6.1.2.1.2.2.1.2.5 = STRING: ra0
      .1.3.6.1.2.1.2.2.1.2.6 = STRING: ra1
      .1.3.6.1.2.1.2.2.1.2.7 = STRING: ra2
      .1.3.6.1.2.1.2.2.1.2.8 = STRING: ra3
      .1.3.6.1.2.1.2.2.1.2.9 = STRING: ra4
      .1.3.6.1.2.1.2.2.1.2.10 = STRING: ra5
      .1.3.6.1.2.1.2.2.1.2.11 = STRING: ra6
      .1.3.6.1.2.1.2.2.1.2.12 = STRING: ra7
      .1.3.6.1.2.1.2.2.1.2.13 = STRING: rax0
      .1.3.6.1.2.1.2.2.1.2.14 = STRING: rax1
      .1.3.6.1.2.1.2.2.1.2.15 = STRING: rax2
      .1.3.6.1.2.1.2.2.1.2.16 = STRING: rax3
      .1.3.6.1.2.1.2.2.1.2.17 = STRING: rax4
      .1.3.6.1.2.1.2.2.1.2.18 = STRING: rax5
      .1.3.6.1.2.1.2.2.1.2.19 = STRING: rax6
      .1.3.6.1.2.1.2.2.1.2.20 = STRING: rax7
      .1.3.6.1.2.1.2.2.1.2.21 = STRING: rax8
      .1.3.6.1.2.1.2.2.1.2.22 = STRING: apcli0
      .1.3.6.1.2.1.2.2.1.2.23 = STRING: apclix0

      The same OIDs works good on SG3428MP switch.

      Javascript

       

      *var interfaces = JSON.parse(value);

      for (var i = 0; i < interfaces.length; i++) {
      if (interfaces[i]["

      {#IFALIAS}"] === undefined) {
      interfaces[i]["{#IFALIAS}

      "] = "";
      }

      if (interfaces[i]"{#IFNAME}" === undefined) {
      interfaces[i]["

      {#IFNAME}

      "] = interfaces[i]"{#IFDESCR}" || "";
      }
      }

      return JSON.stringify(interfaces);*

       

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

              Created:
              Updated: