Werk #16121: Fixed CMC crash when sending illegal metrics to InfluxDB

Component The Checkmk Micro Core
Title Fixed CMC crash when sending illegal metrics to InfluxDB
Date Aug 14, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p13 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p33 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When the CMC tried to send to a metric to an InfluxDB where the metric name was malformed (e.g. starting with an underscore), the CMC crashed. This has been fixed, such metrics are now simply forwarded to the InfluxDB. The latter will probably be a bit unhappy about such metric names, but this can be figured out via its logs, and the corresponding check can be fixed.

Note that in a future Checkmk version, we will probably drop such metrics silently, logging this only for higher log levels to avoid log spam at the default log settings.

To the list of all Werks