Werk #16899: oracle_locks: allow checking w/o setting a state

Component Checks & agents
Title oracle_locks: allow checking w/o setting a state
Date Oct 22, 2024
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p20 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p36 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Setting levels for oracle_locks to (0, 0) or not setting any levels at all makes the check plugin either compare with 0 or with default levels, making it impossible to avoid WARN or CRIT results without fully disabling the check.

This change skips checking against levels if both warn and crit levels have been set to 0, thus keeping the behavior for default levels.

To the list of all Werks