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 |
|
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.