Ad Widget

Collapse

regexp trigger problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oneye
    Junior Member
    • May 2008
    • 27

    #1

    regexp trigger problem

    Hello,

    I use zabbix to catch my SNMP traps and it's working well. Now I'm trying to add some triggers to these traps. My trigger looks like this:

    {SERVER:snmptraps.regexp(^.*BSMainDoorOpen*.*Clear $)}=0 | {SERVER:snmptraps.regexp(^.*BSMainDoorOpen*.*Occur rence$)}=1

    I'm trying to catch traps:
    "tBSMainDoorOpen: kTrapLogNextIndex:22 kCommonAlarmStatus:Occurrence" and get the trigger TRUE and
    "tBSMainDoorOpen: kTrapLogNextIndex:21 kCommonAlarmStatus:Clear" and get the trigger FALSE.

    The problem is that if only this traps occur everythings work fine but if the trigger is TRUE and I get some other trap the trigger changes status to FALSE. Long story short: every trap except "tBSMainDoorOpen: kTrapLogNextIndex:21 kCommonAlarmStatus:Clear" changes status from FALSE to TRUE. I can't understand why. Can anyone help me out?
Working...