Fehler bei einem Host - Error running automation call try-inventory (exit code 1)

Hallo

ich hoffe, dass mir jemand helfen kann. Ich benutze die aktuellste Version (2.0.0.p1). Bei allen Hosts kann ich “Hosts-Service Configuration” aufrufen. Bei einem Windows-Host bekomme ich aber leider immer diese Fehlermeldung:

2021-03-22 15:39:43,528 [30] [cmk.web.automations 32222] 'check_mk --automation try-inventory @noscan ivf-das01.he.dir' returned 'Traceback (most recent call last):

File “/omd/sites/he/bin/check_mk”, line 92, in
exit_status = modes.call(mode_name, mode_args, opts, args)
File “/omd/sites/he/lib/python3/cmk/base/modes/init.py”, line 69, in call
return handler(*handler_args)
File “/omd/sites/he/lib/python3/cmk/base/modes/check_mk.py”, line 1272, in mode_automation
sys.exit(automations.automations.execute(args[0], args[1:]))
File “/omd/sites/he/lib/python3/cmk/base/automations/init.py”, line 72, in execute
out.output(python_printer.pformat(result))
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 29, in pformat
return PythonPrinter().pformat(obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 45, in pformat
PythonPrinter(stream=sio)._format(obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 52, in _format
_dispatch.get(type(obj), _format_unhandled_type)(self, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 115, in _format_dict
_format_sequence(printer, sorted(obj.items(), key=_safe_tuple), _format_dict_item, ‘{’, ‘}’)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 140, in _format_sequence
format_element(printer, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 129, in _format_dict_item
printer._format(item[1])
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 52, in _format
_dispatch.get(type(obj), _format_unhandled_type)(self, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 104, in _format_list
_format_sequence(printer, obj, _format_object, ‘[’, ‘]’)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 140, in _format_sequence
format_element(printer, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 119, in _format_object
printer._format(obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 52, in _format
_dispatch.get(type(obj), _format_unhandled_type)(self, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 100, in _format_tuple
_format_sequence(printer, obj, _format_object, ‘(’, ‘)’)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 140, in _format_sequence
format_element(printer, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 119, in _format_object
printer._format(obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 52, in _format
_dispatch.get(type(obj), _format_unhandled_type)(self, obj)
File “/omd/sites/he/lib/python3/cmk/utils/python_printer.py”, line 56, in _format_unhandled_type
raise ValueError(‘unhandled type %r’ % type(obj))
ValueError: unhandled type <class ‘cmk.base.config.TimespecificParamList’>

cmk -X läuft übrigens einwandfrei durch.
Woran kann das liegen, bzw. wie kann ich das besser debuggen?
Vielen Dank im Voraus.
Grüsse

Stefan

Kann es sein, dass dieser Host Parameter besitzt welche mit einer Timeperiod gekoppelt sind?
Darauf deutet jedenfalls der Fehler hier hin

Läuft auch ein cmk --debug -vvI hostname auch ohne Fehler durch?

Vielen Dank, Andreas. Ja, das Ganze ist sehr merkwürdig, cmk --debug -vvI läuft ohne Fehler durch.
Der Host besitzt direkt keine Timeperiod-Parameter. Nach Probieren habe ich aber herausgefunden, dass der Host Services hat, an denen Zeitangaben hängen. Konkret habe ich eine fileinfo_groups - Age, Size and Count of a Group of files-Regel, dort habe ich einen Timeperiod hinterlegt. Wenn ich die Regel deaktiviere, dann dann kann ich die Host-Services bearbeiten. Aber die Regel sieht doch “normal” aus, oder (siehe Screenshot)?

Ist das ein Bug im Checkmk?

Müsste man mal bei einem beliebigen anderen Service probieren.
Jedenfalls hat der Fehler mit den “timeperiod parameters” zu tun gehabt.
Ist das RAW oder Enterprise? Wäre vielleicht fürs probieren nicht ganz unwichtig.

Ich nutze die RAW-Edition.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.