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

Komponente The Checkmk Micro Core
Titel Limit various fields lengths when writing to the monitoring history.
Datum 21.02.2022
Checkmk-Editon Checkmk Enterprise (CEE)
Checkmk-Version 2.2.0i1 2.0.0p21 2.1.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks