Werk #13251: netapp_api_temp: crash on access to non-existing key 'temp-sensor-current-temperature'
| Component | Checks & agents | ||||
| Title | netapp_api_temp: crash on access to non-existing key 'temp-sensor-current-temperature' | ||||
| Date | Sep 9, 2021 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The check function assumes there's a key 'temp-sensor-current-temperature' for every netapp_api_temp
section element and runs into a KeyError if that isn't the case.
This change preprocesses all entries in a way that only valid entries containing
'temp-sensor-current-temperature' will be processed.