Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 52e9f310a9e2f95c8ec1463e8ca49f6de2b499a0
https://github.com/Checkmk/checkmk/commit/52e9f310a9e2f95c8ec1463e8ca49f6de…
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: 18c91414fa68999666c836088f0e9c0b439ec135
https://github.com/Checkmk/checkmk/commit/18c91414fa68999666c836088f0e9c0b4…
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/d608911d49e1...18c91414fa68
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications