Werk #15459: filestats: Fix crash when monitoring a symlink with a non-existing target

Component Checks & agents
Title filestats: Fix crash when monitoring a symlink with a non-existing target
Date Mar 27, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
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.0b3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Until now, the check plugin would crash if a monitored file didn't have age and size information. This case is possible for symlinks with a non-existing target, files that vanished during agent plugin run and in case of errors.

Now, the affected files will be ignored when calculating age and size extremes and the status of the file will be shown in case of 'Single file' aggregation.

To the list of all Werks