Werk #17040: agent_netapp_ontap: KeyError: 'used'

Component Checks & agents
Title agent_netapp_ontap: KeyError: 'used'
Date Oct 9, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p20 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change affects users monitoring NetApp through the Ontap REST API. Previously the special agent might crash with the following error

 File "/omd/sites/IDT_Dessau/lib/python3/cmk/special_agents/agent_netapp_ontap.py", line 287, in fetch_luns
    space_used=element_data["space"]["used"],
KeyError: 'used

If this happens now, the state of the check will be 'UNKN' and the summary will contain a suggestion that the space used is not available.

It is important to note that we have not been able to reproduce the problem where the lun volume does not provide information about how much space is used. Therefore, other errors may occur in this scenario that cannot be addressed by this werk. Please report such problems so that we can address them.

To the list of all Werks