Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-27067

Autoregistration action scripts not expanding macros when proxy group is used

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.19, 7.4.3
    • Server (S)
    • None

      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:

            zabbix.dev Zabbix Development Team
            ksalins Karlis Salins (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: