Ad Widget

Collapse

Show switch port alias on graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nathanzachary
    Junior Member
    • May 2013
    • 2

    #1

    Show switch port alias on graphs

    Hello all,

    If we have a discovery rule that finds all the ports on some Cisco 5000 series switches (and connected FEX units), the ports are shown by their respective port name (e.g. Ethernet 107/1/32) in the drop-down menus and on graphs. Is it possible to have both that port name and the port alias shown in the drop-down menus and/or the graphs?

    For instance, let's say port Ethernet 107/1/32 has an alias (description entered on the switch) of server52, is there a way to have the traffic graph for that port show:

    Traffic for Ethernet 107/1/32 - server52

    Instead of just:

    Traffic for Ethernet 107/1/32

    ?

    I understand that the following key/SNMP MIB will pull the port name (Ethernet 107/1/32, e.g.):

    ifDescr[{#SNMPVALUE}]
    IF-MIB::ifDescr.{#SNMPINDEX}

    and that the following key/SNMP MIB will pull the description entered for each port:

    ifAlias[{#SNMPVALUE}]
    IF-MIB::ifAlias.{#SNMPINDEX}

    So I would think that the two could be combined. I have tried making a new discovery graph prototype with a name of:

    Traffic on interface {#SNMPVALUE} - ifAlias[{#SNMPVALUE}]

    but that did not work as intended.

    Any suggestions would be greatly appreciated.

    Thank you.
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    Hi,

    On the discovery rule if you change Key from ifDescr to ifAlias and SNMP OID from IF-MIB::ifDescr to IF-MIB::ifAlias you will get something like:

    Traffic for server52

    Comment

    • zbxgo
      Junior Member
      • May 2013
      • 4

      #3
      I think he is wanting both to display. I'm also interested in this so I don't have to maintain a list of interfaces to know which one to look at.

      Comment

      • harmonica
        Senior Member
        • Jan 2009
        • 251

        #4
        Hi,

        Yes the intention is to keep both and I'm also interested in this. In my example it only show Alias.

        Regards

        Comment

        • nathanzachary
          Junior Member
          • May 2013
          • 2

          #5
          So it seems like the problem is actually displaying both values, not in just displaying the ifAlias instead of the ifDesc. If this isn't yet possible, would it warrant a feature request in the Zabbix JIRA?

          Comment

          • abjornson
            Member
            • Oct 2013
            • 34

            #6
            Did anyone ever figure this out?

            I assumed just as you did that making the name of the discovery rule for the graph:

            Interface32 Simple Bandwidth ({#SNMPVALUE}) - (If.32.ifAlias.["{#SNMPINDEX}"])

            This almost works, but what I get in the graph names is:

            Interface32 Simple Bandwidth (Port:1 Gigabit - Level) - (If.32.ifAlias.["1"])

            So it's not replacing the token If.32.ifAlias.["{#SNMPINDEX}"] as it should....

            Comment

            Working...