Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: d7e5aca0d5fcc4941e46aa8a9bccadbb36aa518f
https://github.com/tribe29/checkmk/commit/d7e5aca0d5fcc4941e46aa8a9bccadbb3…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-02-21 (Mon, 21 Feb 2022)
Changed paths:
A .werks/13093
Log Message:
-----------
13093 FIX Limit various fields lengths when writing to the monitoring history.
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):
<ul>
<li>Comment: 2000 bytes</li>
<li>Plugin output: 1000 bytes</li>
<li>Long plugin output: 2000 bytes</li>
</ul>
Note: For fields coming from the Python side (i.e. notifications),
it's actually characters, not bytes.
Change-Id: I615b1394aab45a60e38e51cc54b43e576c2f150e