Werk #13468: mrpe: Do not crash upon invalid metrics

Component Checks & agents
Title mrpe: Do not crash upon invalid metrics
Date Nov 8, 2021
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p16 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In Checkmk versions prior to 2.0, invalid performance data strings passed by the MRPE plugin have been ignored.

In Checkmk 2.0 the parsing would find those invalid strings, and crash upon them. This is generally the desired behaviour (see the documentation for a rationale).

However, since MRPE comprises a lot of different plugins, an all-or-nothing approach is rather inconvenient. We now parse everything as good as we can, and issue an UNKNOWN state for the affected service.

To the list of all Werks