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

Replace macro with corresponding value dynamically

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      A discovery rule creates an item for each file in a directory with a name like 00000034B4A5.
      I wanted to override the item name by using a host macro, so I created:

      {$SENSOR_00000034B4A5} = "Temperature Sensor 1"

      Then, in the item name, I tried to use an LLD macro like this:

      {$SENSOR_{#SENSORID}}

      However, Zabbix does not resolve the macro dynamically. It displays the string {}{$SENSOR_00000034B4A5}{}.

            Unassigned Unassigned
            DmitryMigunov Dmitry Migunov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: