Ad Widget

Collapse

Item Prototype - Trigger based on Interface Name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • slpefanis
    Member
    • Jan 2020
    • 52

    #1

    Item Prototype - Trigger based on Interface Name

    Hi All

    I'm using the Template Net Cisco IOS SNMPv2, which i've copied to customise for a specific device set.

    What I would like to do is create Trigger Prototype, but only if a specific interface is found.

    e.g. Device has a few interface. the two I care about are:
    Interface Ce0/2/0(--- FAILOVER WAN | 4G ---)
    Interface Gi0/0/0(--- WAN / NBN-EE Main Interface ---)

    I would like a trigger prototype to be created ONLY for these two interfaces. I'm just not sure how to setup the prototyp to ONLY create for these.

    Ideally a single trigger based on both would be ideal
    e.g.
    CE0/2/0 Sent and Recived (AVG 15m) > 10000 and GI0/0/0 send and recieved (AVG 15M) < 10000 - Failover to 4G detected

    Else I can just create these manually, but in the template would be ideal
  • frater
    Senior Member
    • Oct 2010
    • 340

    #2
    You can use a filter which needs to be true for the item to be created.
    Would that be a workaround?
    Only create the items (with trigger) that are needed for triggers?

    Otherwise you can make a template with 2 items.
    1 with a trigger and 1 without.

    I don't want items for these interfaces, so I use that expression in Filter
    Network interfaces for discovery
    1 » ^pflog [Result is FALSE]
    2 » ^pfsync [Result is FALSE]
    3 » ^enc [Result is FALSE]
    4 » ppp [Result is FALSE]
    5 » pptp [Result is FALSE]
    6 » ^dummy [Result is FALSE]
    7 » ^lo [Result is FALSE]
    8 » ^bond [Result is FALSE]
    9 » ^Software Loopback Interface [Result is FALSE]
    Click image for larger version

Name:	filter.PNG
Views:	1042
Size:	17.4 KB
ID:	401492


    Zabbix agents on Linux, FreeBSD, Windows, AVM-Fritz!box, DD-WRT and QNAP

    Comment

    Working...