Ad Widget

Collapse

Create trigger from SNMP Traps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobinH
    Member
    • Jul 2023
    • 55

    #1

    Create trigger from SNMP Traps

    Hello,

    I am trying to create a trigger that should react when a portindex in a switch gets the status linkDown. But I don't really know how to go about it.
    According to the example below, it applies to "IF-MIB::ifIndex.2" (Port 2) and "SNMPv2-MIB::snmpTrapOID.0", (Linkstatus) which are the values ​​to be retrieved.

    Anyone who knows a good way to fix it?

    Click image for larger version

Name:	image.png
Views:	474
Size:	27.6 KB
ID:	468719
  • SanMonitor
    Member
    • Aug 2022
    • 48

    #2
    Originally posted by RobinH
    Hello,

    I am trying to create a trigger that should react when a portindex in a switch gets the status linkDown. But I don't really know how to go about it.
    According to the example below, it applies to "IF-MIB::ifIndex.2" (Port 2) and "SNMPv2-MIB::snmpTrapOID.0", (Linkstatus) which are the values ​​to be retrieved.

    Anyone who knows a good way to fix it?

    Click image for larger version

Name:	image.png
Views:	474
Size:	27.6 KB
ID:	468719
    Hey Robin

    a (very) fiddly way to do this would be to use preprocessing steps (both the regular expression & the replace steps) to change this output to a JSON format. Then you could use LLD to get these values in an item.
    Maybe someone knows a better way to do this but this might be an option.

    Comment

    • ISiroshtan
      Senior Member
      • Nov 2019
      • 324

      #3
      I'll be honest, working with traps is way more complicated then with active SNMP monitoring. Is active snmp query an option in your setup?

      If not - I can make you a draft for you of how it was setup in my environments back when I worked with them.We relied on Multiple problem generation option in trigger, tag value extraction from snmptrap via macros functions and tag based correlation of closing the Alert.

      Comment

      • RobinH
        Member
        • Jul 2023
        • 55

        #4
        Hello!

        Yes, but only to a certain extent. In this case they don't seem to have MIB files for what I'm after, but I'll see if I can do a thorough snmpwalk, discovered yesterday that I could find more than what their files say.

        I also prefer SNMP Active….​

        Comment

        Working...