Ad Widget

Collapse

How to defer zabbix notification?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mazate
    Junior Member
    • Oct 2011
    • 20

    #1

    How to defer zabbix notification?

    Hi everyone,

    Is there anyway to defer zabbix of sending its notification, such as an e-mail?

    My network is oftenly unavailable for about a couple of seconds, and my e-mail account is flooded with zabbix notification e-mail.

    So, I would like zabbix to send its notification only if the network is down for more than 3 minutes.

    What should I use for my trigger expression.

    Anyone please help...

    Thank you very much,
    mazate
  • Yello
    Senior Member
    • Apr 2011
    • 309

    #2
    Hi,
    Why don't you post your trigger expression as it is configured now? Then people may comment on that.


    Regards,
    David

    Comment

    • mazate
      Junior Member
      • Oct 2011
      • 20

      #3
      Hi David,

      Thank you very much for your reply.
      Currently I'm using the default template for Windows,

      {Template_Windows:status.last(0)}=2

      by setting Update interval (in sec) = 180

      Thank you in advance,
      mazate

      Comment

      • mazate
        Junior Member
        • Oct 2011
        • 20

        #4
        I've tried this expression but it still doesn't work...
        ({Template_Windows:status.last(#1)}=2)&({Template_ Windows:status.last(#2)}=2)

        Comment

        • mazate
          Junior Member
          • Oct 2011
          • 20

          #5
          I've found example#7 in zabbix document and it should work... I'm trying it now.
          http://www.zabbix.com/documentation/...onfig/triggers

          Comment

          • mazate
            Junior Member
            • Oct 2011
            • 20

            #6
            It seems that the trigger in example#7 just counts the number of occurrence, not the duration of it...

            Comment

            • Yello
              Senior Member
              • Apr 2011
              • 309

              #7
              What I think would match your config as it now stands is this:

              {Template_Windows:status.count(180,2,"eq")}>0

              Which counts the number of values equal to 2 in a 180 second window. If there are any occurences then the trigger will fire.

              To make this work better reduce your polling interval to 60 and try this:


              {Template_Windows:status.count(180,2,"eq")}>2

              That, or something similar, should work.


              Regards,
              David

              Comment

              • mazate
                Junior Member
                • Oct 2011
                • 20

                #8
                Hi David,

                Thank you very much for your advice, I will definitely try it and let you know the result.

                BR,
                mazate

                Comment

                • mazate
                  Junior Member
                  • Oct 2011
                  • 20

                  #9
                  Surprisingly, using this expression, the trigger hasn't fired any notification (even the network has been disconnected for more than 5 minutes).

                  Comment

                  • Yello
                    Senior Member
                    • Apr 2011
                    • 309

                    #10
                    What are you seeing in latest data?

                    Comment

                    • mazate
                      Junior Member
                      • Oct 2011
                      • 20

                      #11
                      It shows...

                      and in the Event tab, its status is OK with no Actions.

                      Comment

                      • Yello
                        Senior Member
                        • Apr 2011
                        • 309

                        #12
                        Can you post the trigger expression as it is configured now?

                        Comment

                        • mazate
                          Junior Member
                          • Oct 2011
                          • 20

                          #13
                          Pretty similar to what you advised,
                          Trigger Expression: {Template_Windows:status.count(240,2,"eq")}>2
                          I set the update interval to 60 seconds.

                          Comment

                          • Yello
                            Senior Member
                            • Apr 2011
                            • 309

                            #14
                            Originally posted by mazate
                            Pretty similar to what you advised,
                            Trigger Expression: {Template_Windows:status.count(240,2,"eq")}>2
                            I set the update interval to 60 seconds.
                            Strange. This trigger format works fine for me. Tell me more about how you're triggering. There may be another way of setting up the trigger. What values does the item return aside from 2?

                            Comment

                            • mazate
                              Junior Member
                              • Oct 2011
                              • 20

                              #15
                              I'm not sure if the update interval value can be set online.
                              I have changed this value from 120 to 60 seconds without restarting zabbix server.

                              Comment

                              Working...