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

Recursive macro resolution

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:

      Description

      It would be really nice if one could use macros as values for other macros.

      In detail, I want to define a template macro {$SSH.IP} with a default value {HOST.IP1} on the template.
      And for some hosts in this template, I want to override the {$SSH.IP} with the actual IP of the host if it doesn't match the configured agent interface IP ({HOST.IP1}).

      Currently, the template macro value {HOST.IP1} is not resolved and passed directly to the item, which obviously fails. So, for now, I had to define the {$SSH.IP} macro on each of my hosts to get the item working.
      Thus it would be very useful if macros would be resolved in macro values, even if it would be only non-user macros such as {HOST.IP1}.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              eht16 Enrico Tröger
              Votes:
              17 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated: