Werk #17211: dell_powerconnect_cpu: Fix KeyError

Component Checks & agents
Title dell_powerconnect_cpu: Fix KeyError
Date Oct 17, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
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)

The check plugin dell_powerconnect_cpu would crash with the following error:

  File "/omd/sites/test/share/check_mk/checks/dell_powerconnect_cpu", line 59, in check_dell_powerconnect_cpu
    ("util1", "%d%%" % saveint(oneminuteperc), params[0], params[1], 0, 100),
  KeyError (0)

The bug was introduced in the 2.3.0. This Werk fixes the issue.

To the list of all Werks