Werk #12714: hr_mem: don't crash on invalid SNMP values for hrStorageType

Komponente Checks & agents
Titel hr_mem: don't crash on invalid SNMP values for hrStorageType
Datum 27.04.2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0p4 2.1.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

hrStorageType defines the type of information provided via SNMP handled by hr_mem. Very often invalid values for hrStorageType are being provided, which leads to unhandled ValueError() exceptions. This change makes the plugin not crash on invalid values but instead return a special string "unknown" as value for hr_type which then can be handled properly by the checks which handle the data provided by hr_mem.

Zur Liste aller Werks