Branch: refs/heads/2.1.0
Home:
https://github.com/Checkmk/checkmk
Commit: 6058d7107e84b101ccbc07da6016efbf677722ce
https://github.com/Checkmk/checkmk/commit/6058d7107e84b101ccbc07da6016efbf6…
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: 4d55ad7fd25e107556eef5fcbe4be964bd7167a3
https://github.com/Checkmk/checkmk/commit/4d55ad7fd25e107556eef5fcbe4be964b…
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/fba96ed35bc3...4d55ad7fd25e
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications