Werk #6456: IPMI Management board: Fixed "cmk -d" on hosts with enabled mgmt board

Komponente Core & setup
Titel IPMI Management board: Fixed "cmk -d" on hosts with enabled mgmt board
Datum 28.08.2018
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.5.0p3 1.6.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

An exception occurred on hosts having IPMI management board enabled when executing "cmk -d [hostname]" on the console:

OMD[stable]:~$ cmk --debug -d ipmi-host
Traceback (most recent call last):
  File "/omd/sites/stable/bin/cmk", line 96, in <module>
    exit_status = modes.call(o, a, opts, args)
  File "/omd/sites/stable/lib/python/cmk_base/modes/__init__.py", line 80, in call
    return mode.handler_function(*handler_args)
  File "/omd/sites/stable/lib/python/cmk_base/modes/check_mk.py", line 366, in mode_dump_agent
    source_state, source_output, source_perfdata = source.get_summary_result()
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/abstract.py", line 392, in get_summary_result
    return self._summary_result()
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/ipmi.py", line 152, in _summary_result
    return 0, "Version: %s" % self._get_ipmi_version(), []
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/ipmi.py", line 156, in _get_ipmi_version
    section = self._host_sections.sections.get("mgmt_ipmi_firmware")
AttributeError: 'NoneType' object has no attribute 'sections'

Zur Liste aller Werks