Werk #13210: oracle_rman: Fix ValueError("cannot render negative timespan")

Component Checks & agents
Title oracle_rman: Fix ValueError("cannot render negative timespan")
Date Sep 21, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

For slow Oracle Databases with long running sysdate commands, the check plugin oracle_rman might have crashed with ValueError("cannot render negative timespan").

This happended if the Archivelog backup was running while the agent collected its data. With this fix, oracle_rman will report a backup age of 0 in such cases.

To the list of all Werks