Werk #15542: Crash MSSQL backup rendering negative timespans

Component Checks & agents
Title Crash MSSQL backup rendering negative timespans
Date Mar 28, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.2.0b2 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When the hosts' time is running ahead of the servers time the time since last backup can be negative.

In this case the MSSQL backup check plugin would crash showing the error message:

ValueError (Cannot render negative timespan)

Now the check plugin creates a warning result rather than crashing.

To the list of all Werks