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

Recursive macro resolution

    XMLWordPrintable

Details

    • Change Request
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.0.4
    • None
    • Server (S)

    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

              Unassigned Unassigned
              eht16 Enrico Tröger
              Votes:
              19 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated: