Ad Widget

Collapse

Dynamic alarm trigger and alarm clear for SNMP trap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samuelma
    Junior Member
    • Aug 2016
    • 2

    #1

    Dynamic alarm trigger and alarm clear for SNMP trap

    Hi, I have a problem to use the SNMP trap for zabbix monitoring.

    The SNMP trap we sent to Zabbix has 2 OID, say one is 1.1.1.1 for raise alarm, the other is 2.2.2.2 for clear alarm. The detail information is included in the SNMP trap payload. We define different moduleId, errorCode, description for different alarm. So one specific alarm is associated to (OID=1.1.1.1 + moduleId + errorCode).

    Then how to differ different alarm in the trigger, and how to associate the specific raise/clear.

    Say, first we have 1st trap: [OID=1.1.1.1, moduleId=appA, errorCode=9001]
    Then we have 2nd trap: [OID=1.1.1.1, moduleId=appB, errorCode=9002], The dashboard show 2 different problem.
    Then we have 3rd trap: [OID=2.2.2.2, moduleId=appA, errorCode=9001], the 3rd trap is to clear the 1st problem.
    The dashboard only show 1 problem.

    Is that reasonable? how to do this in Zabbix?
  • gospodin.horoshiy
    Senior Member
    • Sep 2008
    • 272

    #2
    Thats should be possible in 3.2. Should be something like so in trigger configuration:

    1. OK event generation - Recovery expression
    2. assign 'moduleId + errorCode' to eventTag value (name your tag alarmKey). Use macros function to extract moduleId and errorCode from snmptrap
    3. Use PROBLEM event generation mode - Multiple
    4. OK event closes - All problems if tag values match . Specify tag: alarmKey
    Zbx 2.0.4 on Debian and MYSQL5 on Ubuntu Server 64bit 8.04,
    200+ Win Agents, 50+ Linux Agents, 150+ Network Devices

    Comment

    • samuelma
      Junior Member
      • Aug 2016
      • 2

      #3
      Thanks. That works on 3.2

      Comment

      • marti.cardus
        Junior Member
        • Feb 2016
        • 2

        #4
        screen capture?

        Hi, can you post a screen capture of the configuration you made? I try to make this equal but i don't understand all tasks

        Kind regards

        Comment

        Working...