[ZBX-24606] Same OID used for {#IFNAME} and {#IFDESCR} in Template Net Network Generic Device SNMP Created: 2024 Jun 06  Updated: 2024 Jun 06  Resolved: 2024 Jun 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 5.0.42, 6.0.30
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Syusei YIn Assignee: Zabbix Integration Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
Duplicate
duplicates ZBX-23788 Template TP-LINK by SNMP - filter por... Closed
Team: Team INT

 Description   

As you can see here OID for {#IFNAME} and {#IFDESCR} are the same in Zabbix 5.0, 6.0.However in 7.0, It's different.

7.0
      discovery_rules:
        - uuid: 12e011a176284ab4807c2285768b0470
          name: 'Network interfaces discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1.1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
          key: net.if.discovery
          delay: 1h
          filter:

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/net/generic_snmp/template_net_generic_snmp.yaml?at=refs%2Ftags%2F7.0.0

6.0
      discovery_rules:
        - uuid: 12e011a176284ab4807c2285768b0470
          name: 'Network interfaces discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFNAME},1.3.6.1.2.1.2.2.1.2,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]'
          key: net.if.discovery
          delay: 1h
          filter:

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/net/generic_snmp/template_net_generic_snmp.yaml?at=refs%2Ftags%2F6.0.30

5.0
            <discovery_rule>
               <name>Network interfaces discovery</name>
               <type>SNMP_AGENT</type>
               <snmp_oid>discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFNAME},1.3.6.1.2.1.2.2.1.2,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]</snmp_oid>
               <key>net.if.discovery</key>
               <delay>1h</delay>
               <filter>

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/module/interfaces_simple_snmp/template_module_interfaces_simple_snmp.xml?at=refs%2Ftags%2F5.0.42

Expected:
Accurate OID for each Macros


Generated at Mon Jun 09 07:33:02 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.