Checkmk 2.3.0p9 Inventory Tree Issue

Hello, I started migrating my plugins from Checkmk 2.2 to 2.3 and discovered a change in the inventory tree behavior.

image
Version 2.2.0p24

image
Version 2.3.0p9

The same yield statement shows a different structure in the newer version of Checkmk. I want the old behavior. Anyone know how to fix this?

What you see there depends on your definition of the “displayhints”.
Here an example from my Redfish firmware inventory.

inventory_displayhints.update(
    {
        ".hardware.firmware.": {"title": _l("Firmware")},
        ".hardware.firmware.hpe:": {
            "title": _l("HPE"),
            "keyorder": ["component", "version", "location", "description"],
            "view": "invfirmwarehpe_of_host",
        },

For “hardware” i don’t need to define an title as it is an already existing topic.

Without proper definition it would look like this.

inventory_displayhints.update(
    {
        ".hardware.firmware.hpe:": {
            "title": _l("HPE Firmware"),
            "keyorder": ["component", "version", "location", "description"],
            "view": "invfirmwarehpe_of_host",
        },

Here only one line is missing. The first screenshot is from 2.3 and the second one from 2.2.

2 Likes

Thank you for the quick reply. I still don’t understand because, in the old version, I didn’t need any display hints or views to achieve the behavior shown in the first picture.

image
Version 2.3.0p9

As you can see in the picture the new version created a leaf with no title. Is this expected?

image
Version 2.3.0p9

What happened to the “general” leaf at the end of the attribute path?

If this is expected or not i cannot say.
If i remove my display hints i looks like your example.
Normally every inventory table i use/create has some type of display hints so i don’t saw this behavior before.
I would recommend the display hints, as only with this configured, you can use the resulting table also with filters and sort options.
image

1 Like