Branch: refs/heads/2.3.0
Home:
https://github.com/Checkmk/checkmk
Commit: 869aff13ad67ac9db9b393ffbcb64907a8eea90e
https://github.com/Checkmk/checkmk/commit/869aff13ad67ac9db9b393ffbcb64907a…
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: c2dced785f062df68ec997f7aebb8c3af8dc973a
https://github.com/Checkmk/checkmk/commit/c2dced785f062df68ec997f7aebb8c3af…
Author: Timotheus Bachinger <timotheus.bachinger(a)checkmk.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
A .werks/16240.md
M cmk/base/plugins/agent_based/cpu.py
M cmk/base/plugins/agent_based/cpu_threads.py
M cmk/plugins/lib/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/d9668a1d212f...c2dced785f06
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications