Werk #10449: ps: cleanup counters of processes which do not exist anymore
Komponente | Checks & agents |
Titel | ps: cleanup counters of processes which do not exist anymore |
Datum | 30.10.2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p6 2.0.0i1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
The new section ps_lnx was introduced in version 1.6.0. Unfortunately, counters of processes which do not exist anymore were not cleaned up for this section. This may lead to slowly growing files in tmp/check_mk/counters for hosts with the ps_lnx section. Since the check helpers have to parse this files on a regular basis this leads to an increased CPU load.
It's worth to note that counters only accumulate if you use process monitoring and only if the PIDs of these processes change frequently. If you do not use process monitoring or the PIDs of your monitored processes do not change, you are not affected by this issue.