Werk #16240: Crash on missing thread count on AIX

Komponente Checks & agents
Titel Crash on missing thread count on AIX
Datum 28.02.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p43 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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.

Zur Liste aller Werks