Ad Widget

Collapse

trigger snmptrap[regex] catching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spirou
    Member
    • Jun 2016
    • 62

    #1

    trigger snmptrap[regex] catching

    Hi,

    i must use regular expression and try to catch 2 things in a trigger with snmptrap[<regex>].
    The line i am getting with snmptrap is :

    15:44:16 2016/06/02 .1.3.6.1.4.1.2.6.158.3.0.4 Normal "Status Events" Y012UN19F0EG 4 8 Recovery

    I need to catch .1.3.6.1.4.1.2.6.158.3.0.4 Recovery and fire the trigger

    any ideas pls, ty

    regards
  • Spirou
    Member
    • Jun 2016
    • 62

    #2
    Hi,

    UP !

    i try this :

    snmptrap[".1.3.6.1.4.1.2.6.158.3.0.4|removed"]
    snmptrap[".1.3.6.1.4.1.2.6.158.3.0.4|Recovery"]

    but it seem not work, because the line i send contain only "removed" and it take the other one (Recovery)...

    any idea pls

    regards.

    Comment

    • Spirou
      Member
      • Jun 2016
      • 62

      #3
      Hi, all


      can you confirm me pls its possible to do multireg with snmptrap item zabbix ?

      like this :

      snmptrap[{".1.3.6.1.4.1.2.6.158.3.0.22"} && {"trap4"}]

      i need to catch ".1.3.6.1.4.1.2.6.158.3.0.22" && "trap4"

      2 are required.

      ty
      regards.

      Comment

      • macman
        Junior Member
        • Aug 2016
        • 5

        #4
        Hello Spirou,

        I am sorry but I can't answer your question, instead I have a question for you. I am facing the problem that I am using the key snmptrap too and I in my latest data there shows nothing.
        I was curious if you have data in latest data.

        Kind regards
        macman

        Comment

        Working...