Werk #18265: Netapp Ontap Fans: handle different node netapp versions

Component Checks & agents
Title Netapp Ontap Fans: handle different node netapp versions
Date Aug 5, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p36 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The Netapp ONTAP special agent crashed with

netapp_ontap.error.NetAppRestError: Caused by HTTPError('400 Client Error: Bad Request for url: https://.../api/storage/shelves?fields=id%2Cfans.id%2Cfans.state%2Cfans.installed'): The value "fans.installed" is invalid for field "fields" (<field,...>)

This occurred because the fans.installed field was not available in some versions of ONTAP. The code now checks the ONTAP version and adjusts the fields requested accordingly.

To the list of all Werks