Ad Widget

Collapse

Dell R740 Drive Media Type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ikyo75
    Junior Member
    • Nov 2025
    • 5

    #1

    Dell R740 Drive Media Type

    I am currently using the Template for a Dell R740 by HTTP to obtain the list of drives in a server. Under the drive selection, you can get the media type (HDD,SSD, etc). I am doing a honeycomb layout to show all of the drives. I wanted to see if it would be possible to color them based on the drive media type. With the threshold settings, you are unable to do it because the value returned is text not numeric.
  • Andrejs Poddubņaks
    Junior Member
    • Nov 2025
    • 18

    #2

    Hi, Ikyo75!
    There is some tips, how it possible to do according to documentation.
    You can u se the “Item value” widget type (not necessarily a graph) which supports string values. According to documentation: the Item value widget can display string items too, but the thresholds work only for numeric items. However, you can apply a value-map in Zabbix to map the string to numeric or map to a different display state.
    For example:
    - If media type = "HDD" -> value = 1
    - If media type = "SSD" -> value = 2
    - If media type = "NVMe" -> value = 3
    Then you can use a widget that support numeric threshholds and set: ≤1 = blue, ≤2 = green, ≤3 = orange, etc.
    More detailed information can also be found in the official Zabbix documentation: https://www.zabbix.com/documentation...ets/item_value

    I hope It will help you!

    Comment

    • Ikyo75
      Junior Member
      • Nov 2025
      • 5

      #3
      Where do you put in the mapping? I try it on the root and didn't seem to work correctly.

      Comment

      • Andrejs Poddubņaks
        Junior Member
        • Nov 2025
        • 18

        #4
        1. In the template, open the Dell R740 prototype: {#DISK_NAME} media type and change the information type from Character to Numeric (unsigned). In the “Preprocessing” section, add a conversion step that will replace the string with code. For example, in the JavaScript step, you can return 1 for “HDD”, 2 for ‘SSD’, 3 for “NVMe”, and 0 for everything else. Then attach a reverse value map (1 -> HDD, 2 -> SSD, 3 -> NVMe) to this numeric element so that the familiar strings are displayed again in the interface.
        2. Or create a dependent element. Leave the original media type as a string, but add a new prototype, for example {#DISK_NAME} media type code with the type Numeric (unsigned). Specify the master item in it the original media type and convert the text to a number in preprocessing in the same way. This way, you will have both a text element for viewing and a numeric code for thresholds. Don't forget to apply the value map to the code element.
        The value map itself is created via Data collection -> Templates -> (DELL R740) on the value mapping tab; after creating it, you need to select it in the value mapping field of a specific data element. Simply creating a value map “at the root” is not enough, it must be assigned to each element for which mapping is required.

        Links:
        8. Value mapping - https://www.zabbix.com/documentation/current/en/manual/config/items/mapping
        11. Honeycomb - https://www.zabbix.com/documentation...s/honeycomb​
        ​​

        Comment

        • Ikyo75
          Junior Member
          • Nov 2025
          • 5

          #5
          I tried that, but it didn't like it for some reason. It would show 1 (HDD). When i tried to do the color changes it didn't recognize it. I am wondering if that is being caused by the 1 being treated as text not numeric.

          Comment

          • Andrejs Poddubņaks
            Junior Member
            • Nov 2025
            • 18

            #6
            Color thresholds in Honeycomb only work on raw numerical values; they completely ignore the displayed text. Therefore, if the element is still a string or the widget is looking at the wrong element, the thresholds will never work.
            Checking on the host:
            After the next LLD launch, go to Monitoring --> Latest data for one R740 and open this item:
            - the properties should indicate that the value type is Numeric,
            - the history in the Value column should show something like 1 (HDD), this means “raw 1, displayed as HDD.”

            If the colors still do not change according to the thresholds, it almost always means that the widget accidentally uses the original string element, or the element is still Character. In this case, honeycomb will show 1 (HDD), but the thresholds will never be applied.

            Comment

            Working...