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
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 2.0.0p21 2.1.0b1 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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