Ad Widget

Collapse

SNMP - Adding Alias to interface description

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sponge
    Junior Member
    • Mar 2016
    • 8

    #1

    SNMP - Adding Alias to interface description

    Hey,

    I'm monitoring some Cisco switches via SNMP, and then graphing the results with Grafana.

    Right now I'm using the default Zabbix SNMP interface template, which discovers the interface descriptions ("Incoming traffic on interface GigabitEthernet1/0/1", for example). What I actually want is to have it discover with description + alias (Interface GigabitEthernet1/0/1 Port To Netapp C1) so I don't have to manually write it for every graph I create.

    Bit of a newbie here, hopefully somebody can help?
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    Hi,

    first you need the OID of the alias, and then you can use macros for this..


    for my brocade setup to get only fiber channels:
    Code:
    discovery[{#FIBER},.1.3.6.1.4.1.1991.1.1.3.3.5.1.9,{#IFDESCR},.1.3.6.1.2.1.2.2.1.2]
    and a filter where FIBER matches 3
    Debian-User

    Sorry for my bad english

    Comment

    • scout
      Junior Member
      • May 2012
      • 28

      #3
      My LLD looks like:

      Code:
      discovery[{#IFNAME},IF-MIB::ifName,{#IFALIAS},IF-MIB::ifAlias]
      Then I'm using incoming traffic item:
      Attached Files

      Comment

      • Sponge
        Junior Member
        • Mar 2016
        • 8

        #4
        Scout, that looks very close to what I need.

        So essentially if I config my LLD like this:

        discovery[{#SNMPVALUE},IF-MIB::ifDescr,{#IFALIAS},IF-MIB::ifAlias]

        And then something like incoming traffic is:



        Would that work?

        One question I have is do I have to create the macro #IFALIAS beforehand or is it automatically created?

        Thanks a lot!!

        Comment

        • Sponge
          Junior Member
          • Mar 2016
          • 8

          #5
          Well, it worked
          Last edited by Sponge; 16-03-2016, 21:29.

          Comment

          Working...