Ad Widget

Collapse

Zabbix Actions sending multiple actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chintan1
    Junior Member
    • Jun 2022
    • 24

    #1

    Zabbix Actions sending multiple actions

    Hello All,

    I have a problem that whenever a alert is triggered in Zabbix, its sending multiple actions to the user and triggering Webhook multiple times. Approx 4k times for an alert.
    Trigger is suppose to capture the regex and have problem event generation mode is multiple which is required. Urgent Help is needed.
    Click image for larger version

Name:	image.png
Views:	175
Size:	414.8 KB
ID:	490872Click image for larger version

Name:	image.png
Views:	123
Size:	108.8 KB
ID:	490873
    Click image for larger version

Name:	image.png
Views:	126
Size:	88.5 KB
ID:	490874
  • chintan1
    Junior Member
    • Jun 2022
    • 24

    #2
    Urgent Help is needed

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Show us the trigger config also...

      Looking at problem creation times, do you have a nodata() clause there, by any chance?

      Comment

      • chintan1
        Junior Member
        • Jun 2022
        • 24

        #4
        Hello cyber,

        Yes here is the trigger expression:

        Click image for larger version

Name:	image.png
Views:	135
Size:	10.1 KB
ID:	490940

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Nodata is recalculated every 30 seconds... as you have "Problem generation" as "Multiple" then you get new event each time. If you have many traps incoming, then all of them get recalculated..

          Use some other function to calculate the expression, like "bytelength" for example. It will be calculated only if new data comes in and not every 30 sec...

          Comment

          • chintan1
            Junior Member
            • Jun 2022
            • 24

            #6
            Originally posted by cyber
            Nodata is recalculated every 30 seconds... as you have "Problem generation" as "Multiple" then you get new event each time. If you have many traps incoming, then all of them get recalculated..

            Use some other function to calculate the expression, like "bytelength" for example. It will be calculated only if new data comes in and not every 30 sec...
            But it should ideally get calculated in 1hr as ,1h is passed in expression.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              no.. it is a period that is taken into calculation, not the period between calculations.


              nodata (/host/key,sec,<mode>)
              sec period should not be less than 30 seconds because the history syncer process calculates this function only every 30 seconds.​

              Comment

              • chintan1
                Junior Member
                • Jun 2022
                • 24

                #8
                Originally posted by cyber
                no.. it is a period that is taken into calculation, not the period between calculations.


                nodata (/host/key,sec,<mode>)
                sec period should not be less than 30 seconds because the history syncer process calculates this function only every 30 seconds.
                I am sorry but are you trying to say the expression should be nodata(/host/key,3600)=0

                Comment

                • cyber
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Dec 2006
                  • 4807

                  #9
                  Originally posted by chintan1

                  I am sorry but are you trying to say the expression should be nodata(/host/key,3600)=0
                  no... 3600 or 1h ... it does not matter... that particular function is recalcualted each after 30 seconds. That 1h parameter is like a rolling time window, what is taken into calculations...

                  What I wanted to say (and already actually did it), is, that you shoudl use some other function for your expression... just nodata does not work as you want it...

                  Comment

                  • chintan1
                    Junior Member
                    • Jun 2022
                    • 24

                    #10
                    Same Trigger condition being sent to 2 webhooks. At one webhook, its sending multiple times and to another only once. Is it really a nodata problem

                    Click image for larger version

Name:	image.png
Views:	107
Size:	63.8 KB
ID:	491338
                    Attached Files

                    Comment

                    Working...