Werk #19255 · Sep 16, 26
Oracle sql check crashed on empty long value
The check plugin oracle_sql.py crashed since checkmk 2.4 when the value for long is empty with the following exception:
File "/omd/sites/MY_SITE/lib/python3/cmk/plugins/oracle/agent_based/oracle_sql.py", line 183, in check_oracle_sql
yield Result(
^^^^^^^
File "/omd/sites/MY_SITE/lib/python3.12/site-packages/cmk/agent_based/v1/_checking_classes.py", line 408, in __new__
state, summary, details = _create_result_fields(**kwargs) # type: ignore[misc]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/MY_SITE/lib/python3.12/site-packages/cmk/agent_based/v1/_checking_classes.py", line 447, in _create_result_fields
raise ValueError(f"'{name}' must be non-empty str or None, got {var}")
ValueError: 'summary' must be non-empty str or None, got
This is fixed now.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p14All Editions
- 2.4.0p37All Editions