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

Komponente The Checkmk Micro Core
Titel Fixed CMC crash when sending illegal metrics to InfluxDB
Datum 14.08.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
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.

Zur Liste aller Werks