Ad Widget

Collapse

Issue with {ITEM.VALUE}

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manuel Deschambault
    Junior Member
    • Jan 2026
    • 17

    #1

    Issue with {ITEM.VALUE}

    Zabbix 7.4 in Almalinux 9

    I have an item that return a device name as a string in SNMP.

    I have a dependent item that will extract the room name from the device name

    I want to create a tag that will have that room name as the value, according to the documention, I should be able to create a tag for the dependent item (i.e. NameOfRoom) with a value of {ITEM.VALUE}. This does not work however.

    My dependent item does extract the name of the room from the device name (.i.e Atrium), but then my NameOfRoom tag value shows {ITEM.VALUE} instead of resolving to "Atrium".

    Any ideas, are custom tag values limited to certain item classes (i.e. not available to dependent items?)
  • hrrapozo
    Junior Member
    • Nov 2025
    • 9

    #2
    I tend to use the inventory (with Manual option) within a Host. As far as macros go you can use:
    • {INVENTORY.LOCATION} - It is a multi line box, I can't remember the syntax to say you if just want the first line but it is doable
    • {INVENTORY.LOCATION.LAT} - for GPS Latitude
    • {INVENTORY.LOCATION.LON} - for GPS Longitude
    When you use them in the Top host widget you need to specify Text in the Data dropdown as opposed to Item value.

    Comment

    • Manuel Deschambault
      Junior Member
      • Jan 2026
      • 17

      #3
      So I have set the "Location" inventory field to hold my RoomName dependent item, and that populates fine. But when I then try to create a tag for my host: "NameOfRoom" with a value of "{INVENTORY.LOCATION}}, it does not resolve, the value of my tags remains: INVENTORY.LOCATION}

      I don't understand what you mean with "When you use them in the Top host widget you need to specify Text in the Data dropdown as opposed to Item value."

      Comment

      • hrrapozo
        Junior Member
        • Nov 2025
        • 9

        #4
        Here are some screen shots from my zabbix setup

        This is the display from the top host widget

        Click image for larger version

Name:	dataurl317434.png
Views:	15
Size:	19.3 KB
ID:	512229
        Editing the top host widget

        Click image for larger version

Name:	dataurl392584.png
Views:	13
Size:	60.5 KB
ID:	512230

        Editing the column Inventory location

        Click image for larger version

Name:	dataurl445707.png
Views:	13
Size:	12.0 KB
ID:	512231
        For the Data dropdown there are three possible options which are Item value, Host name and Text. In most cases one uses the Item value option to get data from a device using what the device's template is setup (like IP address for example). If you are using the {INVENTORY.x} macro you need to use the Text option in that Data dropdown.

        Hope this help things.

        ​​

        Comment

        • hrrapozo
          Junior Member
          • Nov 2025
          • 9

          #5
          Also doing a couple of screen shot of one of these switches.

          Click image for larger version

Name:	image.png
Views:	12
Size:	37.3 KB
ID:	512235

          If one clicks on the Inventory link (with the green dot to the right of it, which means you have data there) you will get this screen below:


          Click image for larger version

Name:	image.png
Views:	12
Size:	29.1 KB
ID:	512234


          Attached Files

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4874

            #6
            Tags are added to EVENT. While you look at just latest data, tags are not resolved, but when a trigger fires and event is created, all tags from all levels get attached to that event and also resolved to specific values... Thats why your item tag seems to not work... it only displays the value in event.. not in widget..
            There is a list of places, where each of existing macros can be used https://www.zabbix.com/documentation...ed_by_location
            Thats where the reference to "When you use them in the Top host widget you need to specify Text in the Data dropdown as opposed to Item value." comes from ..
            {INVENTORY.LOCATION} → Column of data type Text in Top hosts widget​

            Comment

            • Manuel Deschambault
              Junior Member
              • Jan 2026
              • 17

              #7
              Ok, I see. I think I was off the reservation because we do not use Zabbix for any dashboards, we exclusively use Grafana. Are discovery macro available on items tags?

              If I extracted my room number in a discovery rule, could I then assign that value to a tag value using {#RoomName}?

              Comment

              Working...