Ad Widget

Collapse

Local Discovery of Switch Ports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabberuk
    Member
    • May 2010
    • 82

    #1

    Local Discovery of Switch Ports

    I'm building out a SNMPv3 template for a Unifi Switch. I've done an SNMP walk and have highlighted OIDs for data such as uptime, model and device name. Where i'm a little confused is with created a discovery rule to add in the switch ports.

    On the switch in question there are 26 ports and i can see the switch port names go from iso.3.6.1.2.1.31.1.1.1.18.1 to iso.3.6.1.2.1.31.1.1.1.18.26 (although there are some empty strings after which i will likely have to filter out)

    For the Discovery rule i have

    Key: net.if.discovery
    OID: discovery[{#IFNAME},iso.3.6.1.2.1.31.1.1.1.18]

    For an item prototype i have

    Key: port.name
    OID: iso.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}

    In my mind, the item should index through but when its running i get nothing.

    Any tips would be appreciated.
  • jtnfoley
    Member
    • Mar 2022
    • 76

    #2
    Start with minb2zabbix then customize the resulting template?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      The recommendation is to use numeric OIDs only (https://www.zabbix.com/documentation...ate_items#snmp), otherwise you need to ensure all the MIBs are correctly installed.

      Markku

      Comment

      Working...