Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

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 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.3.0p3 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.2.0p27 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

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