Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8512

Ability to get trigger parameters with unexpanded user macros

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 6.0.18, 6.4.3
    • API (A)

      Hi,
      For example we want to get trigger from one Zabbix instance and create the same in another instance. We can use trigger.get and trigger.create methods respectively
      There is an option "expandExpression" and if it is set to "true" - all macros including user macro will be expanded in the replay. If you don't use "expandExpression" parameter in the original "trigger.get" you will get macros as needed. But you also will get unexpanded functions, so if macro is function parameter (for example nodata(...,{$NODATA_MACRO})) it is like

      {12345}=1
      

      No clue that macro is there regardless of query parameters. (i.e. if the macro is used as a threshold value, there are still options, albeit inconvenient, then there are none at all)

      At the moment, this can only be "bypassed" by importing and exporting templates

            zabbix.dev Zabbix Development Team
            elina.kuzyutkina Elina Kuzyutkina (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: