Werk #17325: netapp_ontap: KeyError: 'status'

Component Checks & agents
Title netapp_ontap: KeyError: 'status'
Date Nov 15, 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.0p23 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 296, in fetch_luns
    read_only=element_data["status"]["readonly"],
KeyError: 'status'

Now the agent handles the absence of the data and in this case shows the read_only status as 'unknown'.

To the list of all Werks