Ad Widget

Collapse

Action Condition not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manish
    Junior Member
    • Jan 2016
    • 27

    #1

    Action Condition not working

    Hi,

    I have configure zabbix to send email notification if trigger severity is "High" and I am getting emails. Now I want to send email for spefic host triggers. I know there is option in Configuration--Action-Condition. But I am confused here.

    In new condition I selected Host--like and all host whoes trigger action I dont want as email notification. Because as per zabbix doc they said "Specify hosts or hosts to exclude." But still I am getting notification of these host which I have set in action--condition. Type of calculation is "or". What I am missing here?
  • jacek
    Member
    • Nov 2008
    • 45

    #2
    Hi,

    if I understand you correctly, you have somthing like this:
    contidion: trigger severity or host like or host like or host like etc.

    If yes, then an email is going to be sent always when one of this condition is going to be true. In your case condition trigger severity is generating notification and host doesn't really matter.

    You should change type of calculation into and/or to have something like this:

    trigger severity and (host like or host like etc.)

    Comment

    • Manish
      Junior Member
      • Jan 2016
      • 27

      #3
      Thanks It's working now...

      Comment

      • arunkchow
        Junior Member
        • Oct 2017
        • 13

        #4
        I can't stop SSL Alerts despite of the conditions in actions

        Originally posted by jacek
        Hi,

        if I understand you correctly, you have somthing like this:
        contidion: trigger severity or host like or host like or host like etc.

        If yes, then an email is going to be sent always when one of this condition is going to be true. In your case condition trigger severity is generating notification and host doesn't really matter.

        You should change type of calculation into and/or to have something like this:

        trigger severity and (host like or host like etc.)
        I want alerts to all events except for the ones that are generated from two templates.

        I specified the templates with <> in conditions to my actions but I still keep getting alerts for the events which belong to the templates. I am not sure where I am going wrong.

        I've attached the screenshot. Any help is greatly appreciated.
        Attached Files

        Comment

        • kaspars.mednis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2017
          • 349

          #5
          Try B AND C...

          if B = true and C=false, OR will give you TRUE

          good luck !
          Kaspars

          Comment

          • arunkchow
            Junior Member
            • Oct 2017
            • 13

            #6
            Originally posted by kaspars.mednis
            Try B AND C...

            if B = true and C=false, OR will give you TRUE

            good luck !
            Kaspars
            Thank you for your input Kaspars.
            I changed to AND but I still have the alerts coming in from the events generated by unwanted templates and triggers.

            T
            Attached Files

            Comment

            • kaspars.mednis
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2017
              • 349

              #7
              Are the unwanted triggers coming from excluded templates or from some general templates ?

              i tried today to simulate your situation and it worked as expected with zabbix 3.4.2 (see the screenshot below)
              im not getting alarms from Templates Test1 and Test2

              the documentation https://www.zabbix.com/documentation...ion/conditions says:

              Specify templates or templates to exclude.
              = - event belongs to a trigger inherited from this template.
              <> - event does not belong to a trigger inherited from this template.

              the ignored triggers must come explicitly from excluded templates

              Best regards,
              Kaspars
              Attached Files

              Comment

              • arunkchow
                Junior Member
                • Oct 2017
                • 13

                #8
                Version difference

                Originally posted by kaspars.mednis
                Are the unwanted triggers coming from excluded templates or from some general templates ?

                i tried today to simulate your situation and it worked as expected with zabbix 3.4.2 (see the screenshot below)
                im not getting alarms from Templates Test1 and Test2

                the documentation https://www.zabbix.com/documentation...ion/conditions says:

                Specify templates or templates to exclude.
                = - event belongs to a trigger inherited from this template.
                <> - event does not belong to a trigger inherited from this template.

                the ignored triggers must come explicitly from excluded templates

                Best regards,
                Kaspars
                Thanks for testing it out Kaspar. We're running Zabbix 2.4.8.
                The alerts I want to stop are from two templates (exclude) and as well as a standalone trigger. The trigger does not belong to the templates we're excluding. I guess I put myself in a weird spot.

                Well. I tried and am tired. The solution you suggested is straight forward it's just my setup I guess.

                But thanks a bunch of helping me figure it.

                Cheers,
                Arun

                Comment

                Working...