Werk #18012: Netapp environment sensors: handling states different from normal

Component Checks & agents
Title Netapp environment sensors: handling states different from normal
Date Apr 30, 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.0p1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p33 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The special agent crashed when monitoring sensors in a state other than normal because they did not report the value field:

  File "/omd/sites/site_name/lib/python3/cmk/special_agents/agent_netapp_ontap.py", line 720, in fetch_environment
    value=element_data["value"],
          ~~~~~~~~~~~~^^^^^^^^^
KeyError: 'value'(!!)

From this werk, any sensor with a status other than normal will have the service in CRIT status and the specific api-reported state will be displayed in the service summary.

To the list of all Werks