Ad Widget

Collapse

3 conditions in 1 action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andreazza
    Junior Member
    Zabbix Certified Specialist
    • Jul 2011
    • 16

    #1

    3 conditions in 1 action

    hi everybody

    i want to monitor my internet connection.. pretty easy hum?
    for that, i want to ping 3 different websites, and if the all 3 have ping timeout, i want zabbix to send me a email..

    ok, it`s working if use OR calculation...
    zabbix send me a e-mail for every trigger that changes..
    but, i want AND condition... i mean, zabbix have to send me a email only if all 3 triggers change!

    anybody have done this?
    mine is not working, any idea and help is appreciated.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    You will want to use AND for your boolean operator. If your triggers are written such that they activate only when your site cannot be reached, then you configure your action using AND so that it will only activate when all values are true.

    Code:
    1 | 0 = 1  (Or operator)
    0 | 0 = 0
    
    1 & 0 = 0  (And Operator)
    1 & 1 = 1
    0 & 0 = 0
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • andreazza
      Junior Member
      Zabbix Certified Specialist
      • Jul 2011
      • 16

      #3
      thanks for your reply nelsonab, i`m doing exactly that..
      see:

      (A) Trigger value = "PROBLEM"
      (B) Host = "google.com"
      (C) Host = "terra.com.br"
      (D) Host = "g1.com.br"


      my type of calculation:
      (A) and (B and C and D)

      Comment

      • gustav_79
        Junior Member
        • Jan 2021
        • 2

        #4
        andreazza

        Did you solve your issue? Could you share?

        Comment

        Working...