Autoregistration action scripts not expanding macros when proxy group is used

XMLWordPrintable

    • S25-W48/49, S25-W50/51/52/01
    • 3

      Steps to reproduce:
      1. Create a script that will be run during autoregistration from Scripts > Action operation. Choose it to be run on Zabbix proxy or server.
      Script example:

      echo {HOST.HOST} {$TEST} {DATE} > /tmp/test_proxy.txt
      

      You will also need to create a global macro {$TEST} for the value to be represented.

      2. Create an autoregistration action which is going to run the script if autoregistration happens. Make sure the target is a proxy which is part of a proxy group.

      3. Initiate autoregistration and observe Reports > Action log
      Result:

      Expected:
      Macros get expanded properly like they would if autoregistration is done by individual proxies or Zabbix server.
      Zabbix server

      Proxy:

        1. image-2025-10-03-19-27-55-245.png
          7 kB
          Karlis Salins
        2. image-2025-10-03-19-28-54-266.png
          7 kB
          Karlis Salins
        3. image-2025-10-03-19-29-25-223.png
          7 kB
          Karlis Salins

            Assignee:
            Michael Veksler
            Reporter:
            Karlis Salins (Inactive)
            Team B
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 24h Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 26h
                26h