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

Komponente Checks & agents
Titel Crash: liebert_maintenance: ValueError("Cannot render negative timespan") when time is overdue
Datum 21.05.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.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.

Zur Liste aller Werks