Werk #16885: Crash: liebert_maintenance: ValueError("Cannot render negative timespan") when time is overdue

Component Checks & agents
Title Crash: liebert_maintenance: ValueError("Cannot render negative timespan") when time is overdue
Date May 21, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p27 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

liebert_maintenance check would crash with ValueError("Cannot render negative timespan") if the value for "Next maintenance" is in the past. This change now renders positive and negative values differently (also only printing days) adding 'overdue' if date for next maintenance is located in the past.

To the list of all Werks