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

Depricated host inventory macros not resolved in item tags, trigger tags, manual host action scripts

XMLWordPrintable

    • Documentation backlog
    • 1

      Precondition: server is running, in zabbix_server.conf file parameter EnableGlobalScripts=1

      Steps to reproduce:

      1. Import the attached host myHost1 (host created in 6.0): myHost1_from6.0.yaml
      2. Observe a host myHost1 was created
      3. Host myHost1 has an item with one deprecated host inventory macro tag - {PROFILE.SERIALNO} - and one non-deprecated host inventory macro tag - {INVENTORY.SERIALNO.A}; it also has a trigger with the same tag values
      4. Create a script with Scope: Manual host action, Type: Script, Execute on: Zabbix proxy or server, Commands:
        echo "New host inventory serial number A: {INVENTORY.SERIALNO.A} and old: {PROFILE.SERIALNO} "
      5. In terminal execute:
        ./bin/zabbix_sender -z 127.0.0.1 -s myHost1 -k trap -o 10
      6. In frontend open Monitoring -> Problems, filter by host myHost1
      7. Find the high severity problem of this host, observe the tags - the item and trigger tags with non-deprecated macro tag values are resolved, but the deprecated ones are not resolved
      8. Click on the host name myHost1, in section Scripts click on myScript1, observe in the result - the non-deprecated macro value is resolved, but the deprecated one is not resolved

      Result: the deprecated macros are not resolved

      Expected: the deprecated macros should be resolved in these cases

      In 6.0 there is no EnableGlobalScripts parameter in server file and the non-deprecated macro is also not resolved in script (step 8)

        1. myHost1_from6.0.yaml
          0.9 kB
        2. screenshot-1.png
          screenshot-1.png
          108 kB
        3. screenshot-2.png
          screenshot-2.png
          90 kB

            zabbix.dev Zabbix Development Team
            ssmildzina Sanija Smildzina
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: