Werk #13093: Limit various fields lengths when writing to the monitoring history.

Component The Checkmk Micro Core
Title Limit various fields lengths when writing to the monitoring history.
Date Feb 21, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b1 Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p21 Checkmk Enterprise (CEE), Checkmk MSP (CME)

To protect against very long fields coming e.g. from notification plugins and other external sources, the CMC will put limit to various fields which are written to the monitoring history. If such a field is too long, it's simply truncated. This is a simple protection against huge memory consumption of the CMC, which caches log lines for faster views and SLA computations.

Limits (non-configurable for now):

  • Comment: 2000 bytes
  • Plugin output: 1000 bytes
  • Long plugin output: 2000 bytes

Note: For fields coming from the Python side (i.e. notifications), it's actually characters, not bytes.

To the list of all Werks