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

Recursive macro resolution

XMLWordPrintable

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

      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}.

            Unassigned Unassigned
            eht16 Enrico Tröger
            Votes:
            28 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: