Ad Widget

Collapse

Trigger for snmptrap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bigfoot_2k
    Junior Member
    • Nov 2015
    • 2

    #1

    Trigger for snmptrap

    Hi!

    We receive snmp-traps from a telephony system on a zabbix server 2.2.2.
    The traps are shown in the "Latest Data" tab, translated by snmptt.

    So far I created a trigger that puts a warning to the dashboard if any trap was discovered (so far it works!):
    Code:
    {<HOST>:snmptrap.fallback.strlen()}>1
    The trap contains of (ip address blanked out...):
    Code:
    14:16:33 2015/11/20 MX-ONE-TS-ALARM-MIB::mxAlarmWarning Normal "Status Events" x.x.x.x - 21377 Lim 1, Unit SBYALR 3:2 warning Standby server is out of order, Cluster: svmxts06 Standby: svmxts06 no
    My goal is to create a trigger that brings the info from the sent trap to the dashboard, filtered as "Standby server out of order", not as a general "I found a snmptrap"-Info.

    How can I build a trigger for this purpose?

    I already tried something like:
    Code:
    {<HOST>:snmptrap.fallback.str(order)}=1
    {<HOST>:snmptrap.fallback.regex(/order/)}#0
    {<HOST>:snmptrap.fallback.regex(^order$)}#0
    Has anyone a little input on this topic?

    Thanks in advance,
    Klaus
  • Steveo
    Member
    • Jun 2013
    • 31

    #2
    I will give you a snippet from one of my SNMP Trap items/triggers.

    This is for monitoring RX levels on fiber....

    I created an item called "High power threshold" and used the following on my JDSU WaveReady Template:

    Type = snmptrap
    Key = ["RX power above high power threshold"]
    Type of information = Log

    Then, I created a trigger called "Client RX power above high power threshold - 1-1-1-C" and used the following expression:

    {JDSU WaveReady:snmptrap["RX power above high power threshold"].str("bjRaiseMinorAlarmNotification")}=1 & {JDSU WaveReady:snmptrap["RX power above high power threshold"].str("bjClearAlarmNotification")}=0 & {JDSU WaveReady:snmptrap["RX power above high power threshold"].str("1-1-1-C")}

    This alarms when a trap is received for "RX power above high power threshold" and it includes bjRaiseMinorAlarmNotification". The alarms clears when a trap is received for "RX power above high power threshold" and inlcudes "bjClearAlarmNotification" and "1-1-1-C", which is the port being monitored.

    I hope this helps!

    Comment

    • Bigfoot_2k
      Junior Member
      • Nov 2015
      • 2

      #3
      Hi Steveo!

      Thank you for your reply, I think this did the trick:

      Code:
      {Template XXXX:snmptrap["This is my trap"].strlen()}>1
      I was thinking in a too complex way in constructing the regex for the snmptrap["regex"]-Parameter as I tried to construct a cyptic expression.

      Putting the "trap name" into the brackets helped, the triggers are working perfect!

      Bye,
      Happy Holidays
      CU
      K.

      Comment

      Working...