Ad Widget

Collapse

Zabbix 2.2 - how to add conditionality to triggers?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • morrolan
    Junior Member
    • Aug 2013
    • 15

    #1

    Zabbix 2.2 - how to add conditionality to triggers?

    Hi,

    I'm using Zabbix 2.2 to monitor Windows application processes using proc.num[]. My issue is I currently end up with 2 alerts (one yellow one red) when the application falls over, and ideally I want one to replace the other.

    Currently if the application isn't detected as running, a yellow alert triggers to let us know that it is down/restarting. I have a second trigger which takes an average over 10 minutes and if that average = 0 (i./e. the application has been down for 10 minutes+) a red level trigger fires and sends an email via an action.

    However, what I would ideally like is that when the red level triggers fires (after 10 minutes) that this replaces the yellow alert rather than existing alongside it, as this is causing some confusion with our customers as they believe 2 processes are down rather than 1.

    I have got lost using the expression constructor on the triggers but surely this can be done?

    I am a software programmer so funny syntax isn't an issue, I just need help with the expression constructor so that I can make the yellow alert disappear when the red is active.

    Ideally the Dependencies tab should allow me to choose NOT/AND/OR rather than "this trigger also fired."

    Kind Regards,
    Morrolan
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Do you mind to try Dependencies like that:
    - Yellow trigger - Dependent on Red trigger.

    In this case, first one who fired is Yellow one.
    But when Red trigger activates, Yellow trigger hides.
    Sincerely yours,
    Aleksey

    Comment

    • morrolan
      Junior Member
      • Aug 2013
      • 15

      #3
      Thats excellent - it works exactly as expected, but for some reason it seems to feel a little backward to me.

      I'll go and have another look at the documentation, but many thanks for answering so quickly.

      Comment

      Working...