Ad Widget

Collapse

SNMP switch device: add only given ports (template thing)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linuxmail
    Junior Member
    • Feb 2016
    • 9

    #1

    SNMP switch device: add only given ports (template thing)

    hi,

    I created a template for a Lancom switch. I want to monitor only a given list of ports, for example 1,2,9,10...31,49.
    I don't want to use the autodiscover thing, because I get a big item list, that I don't need/want to monitor.

    I linked the template to my switch .. but don't know, how to submit the ports, I want.

    What I have for TX in my template:

    Code:
    Name: TX Port.$1
    Type: SNMP3 Agent
    ....
    Key: ifHCOutOctets[{#SNMPVALUE}]
    SNMP OID: IF-MIB::ifHCOutOctets.[{#SNMPVALUE}]
    For example, if I want to monitor port 49:

    Code:
    Name: TX Port.49
    Key: ifHCOutOctets49
    SNMP OID: IF-MIB::ifHCOutOctets.49
    So, what is the right Zabbix way, to make use of the template/macros/value?

    cu denny
  • Linuxmail
    Junior Member
    • Feb 2016
    • 9

    #2
    Solved

    hi,

    I solved it by myself. I added to all Lancom ports a description and used for the discovery rule the ifAlias SNMP, instead of the normal ifDescr.. Than I put in every ifAlias a "| Monitor" string, I want to discover.
    With the {#snmpvalue} macro and "Monitor$" as filter, I was able to choose the ports I want.

    Comment

    Working...