Werk #13346: logwatch_ec: Fix crash with KeyError in cluster mode

Component Checks & agents
Title logwatch_ec: Fix crash with KeyError in cluster mode
Date Sep 27, 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.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In a clustered setup, the check plugin logwatch_ec, used for forwarding log messages collected by the logwatch agent plugin to the Event Console, might have crashed with a KeyError. This happened if a logfile was present only on some, but not all cluster nodes.

To the list of all Werks