Werk #15542: Crash MSSQL backup rendering negative timespans

Komponente Checks & agents
Titel Crash MSSQL backup rendering negative timespans
Datum 28.03.2023
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

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.

Zur Liste aller Werks