Werk #12087: hr_mem: raises KeyError() on invalid SNMP data

Component Checks & agents
Title hr_mem: raises KeyError() on invalid SNMP data
Date Mar 29, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

An empty value for hrStorageType component cannot be mapped to a known type and currently crashes with a KeyError(). This change will just ignore hr_mem-entries without given hrStorageType.

To the list of all Werks