Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: 45996144e4d2e409e76dd61900ac115bf954ceea
https://github.com/Checkmk/checkmk/commit/45996144e4d2e409e76dd61900ac115bf…
Author: Timotheus Bachinger <timotheus.bachinger(a)checkmk.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
M tests/unit/cmk/base/plugins/agent_based/test_cpu_threads.py
Log Message:
-----------
Add base line test
... this reveals the non-resilient parse function
Change-Id: I69935d00914baca3bb169a483826858e2c4f1328
JIRA-Ref: SUP-16682
Commit: 30deff6d94f4b7c522a1dd8ae8b2108a86b8361f
https://github.com/Checkmk/checkmk/commit/30deff6d94f4b7c522a1dd8ae8b2108a8…
Author: Timotheus Bachinger <timotheus.bachinger(a)checkmk.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
A .werks/16240
M cmk/base/plugins/agent_based/cpu.py
M cmk/base/plugins/agent_based/cpu_threads.py
M cmk/base/plugins/agent_based/utils/cpu.py
M tests/unit/cmk/base/plugins/agent_based/test_cpu_threads.py
Log Message:
-----------
16240 FIX Crash on missing thread count on AIX
You're affected if you want to monitor your CPU and the cpu check crashes with
something like:
```
File "/omd/sites/YOURSITE/lib/python3/cmk/base/plugins/agent_based/cpu.py",
line 48, in parse_cpu
count=int(row[3].split("/")[1]),
ValueError (invalid literal for int() with base 10: '')
```
We saw this happening on AIX system when the ps information cannot be obtained due to low
memory.
The parsing is now more resilient against such missing data.
Change-Id: I4118c37e0f78621864ca5aa6a26186b2a548ad42
JIRA-Ref: SUP-16682
Compare:
https://github.com/Checkmk/checkmk/compare/380a5017ffef...30deff6d94f4
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications