Ability to get trigger parameters with unexpanded user macros

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: 6.0.18, 6.4.3
    • Component/s: 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

            Assignee:
            Zabbix Development Team
            Reporter:
            Elina Kuzyutkina (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: