Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

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 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.3.0p23 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

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