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

Komponente Checks & agents
Titel oracle_locks: allow checking w/o setting a state
Datum 22.10.2024
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
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.

Zur Liste aller Werks