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

Werk #17205: agent_netapp_ontap: KeyError: 'rpm' and KeyError: 'temperature'

Component Checks & agents
Title agent_netapp_ontap: KeyError: 'rpm' and KeyError: 'temperature'
Date Aug 1, 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.0p13 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

This change affects users, which monitor NetApp via Ontap REST API. Previously, the special agent could crash with the following error:

File "/omd/sites/nyccheckmk2/lib/python3/cmk/special_agents/agent_netapp_ontap.py", line 28, in write_section
  for element in generator:
File "/omd/sites/nyccheckmk2/lib/python3/cmk/special_agents/agent_netapp_ontap.py", line 471, in fetch_fans
  rpm=fan["rpm"],
~~^^^^^^^
KeyError: 'rpm'CRIT

This would occur, if either a fan or temperature sensor had an error, and thus did not report any rpm/temperature value. This has been fixed.

To the list of all Werks