Ad Widget

Collapse

I need help in creating a trigger for this situation...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GigAl70
    Junior Member
    • Feb 2017
    • 9

    #1

    I need help in creating a trigger for this situation...

    Hi guys.
    I need help in creating a trigger for this situation:
    There are to parameters, A and B, I need a trigger which would trigger when they both equal to "1" more than 3 times in past 2 hours.
    Could anyone help me please?

    zabbix 3.4
  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hi, GigAl70!

    Try to count how many values are equal to "1" in last 2h:
    {sample-host:item.key.A.count(2h,1,"eq")} > 3 and {sample-host:item.key.B.count(2h,1,"eq")} > 3



    Regards,
    Aigars

    Comment

    • BP_Vital
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Feb 2016
      • 43

      #3
      Maybe calculated item would do the trick?
      Calculated item "C" = 1 when both A=1 and B=1.
      Then trigger "C"?

      Comment

      Working...