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

        1. image-2025-02-27-17-09-07-853.png
          31 kB
          Dmitry Migunov
        2. image-2025-02-27-17-09-58-377.png
          13 kB
          Dmitry Migunov
        3. image-2025-02-27-17-10-44-185.png
          17 kB
          Dmitry Migunov
        4. Latest data.png
          39 kB
          Dmitry Migunov

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

              Created:
              Updated: