Werk #12711: ps_check: crash on non-matching enforced service 'State and count of processes'

Component Checks & agents
Title ps_check: crash on non-matching enforced service 'State and count of processes'
Date Apr 21, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Configuring 'State and count of processes' as enforced service with per-process details set to 'text' crashes with unhandled "ValueError: 'notice' must be non-empty str or None, got" if the specified process could not be found. This change avoids this exception by not trying to render a process list without processes found.

To the list of all Werks