Ad Widget

Collapse

Autoregistration actions execution order

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yurtesen
    Senior Member
    • Aug 2008
    • 130

    #1

    Autoregistration actions execution order

    I am trying to understand autoregistration a little bit better.

    * I assume only 1 action (first match) is executed per autoregistration attempt. Is this correct?

    * If there are multiple autoregistration actions with matching conditions. For example metadata `foobar` and 2 separate actions where one says `contains foo` and other has condition `contains bar` which one is executed?

    Thanks​
  • Answer selected by yurtesen at 25-11-2025, 12:53.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    Why do you assume that? IIRC all matching actions are executed.
    I am pretty sure that action with lower ID gets executed first,

    Comment

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

      #2
      Why do you assume that? IIRC all matching actions are executed.
      I am pretty sure that action with lower ID gets executed first,

      Comment

      • yurtesen
        Senior Member
        • Aug 2008
        • 130

        #3
        Simply because there is no mention of such possibility in the manual:

        But thanks for clarifying the issue. Certainly things are more flexible if all matching actions are executed.

        Comment

        • mircea-c
          Junior Member
          • Nov 2025
          • 1

          #4
          Originally posted by cyber
          Why do you assume that? IIRC all matching actions are executed.
          I am pretty sure that action with lower ID gets executed first,
          Going to revive this old post to ask if there's any source for this claim, besides going to dig through the source code.
          Would be great to be certain without having to test this every time a major version is released.

          Comment

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

            #5
            No, there is nothing more than experience and gut feeling.. I think there are other things in the product that behave same way... if listed, similar things ordered by ID etc.. Like... if you have 2 tags with same name and different value in event... and in some action operation you refer to that tag by name ({EVENT.TAGS.<tag name>})... which one pops up? The one with lower ID..

            Comment

            Working...