Werk #17213: oracle_sql: Fix ValueError: could not convert string to float: ''

Komponente Checks & agents
Titel oracle_sql: Fix ValueError: could not convert string to float: ''
Datum 12.11.2024
Level Kleine Änderung
Klasse Bugfix
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.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p37 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The agent plugin mk_oracle reports 'elapsed:' for the elapsed time, if the perl or bc call fail. In the past, the plugin oracle_sql crashes with

  elif key == "elapsed":
    instance.elapsed = float(line[1])
ValueError: could not convert string to float: ''

With this Werk, the crash is fixed. The missing metric elapsed_time will be omitted.

Zur Liste aller Werks