Werk #16514: Make level handling of check-cert more consistent with other checks

Component Checks & agents
Title Make level handling of check-cert more consistent with other checks
Date Apr 9, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The --not-after option required WARN to be strictly larger than CRIT. This was changed to larger or equal. The error message was also improved from invalid args to

invalid args: WARN must be larger than or equal to CRIT but got <WARN_VALUE> <CRIT_VALUE>

To the list of all Werks