Hey
I use CheckMk Enterprise 2.1.0p29 with Nagstamon 3.12.0 software without any problem.
Nagstamon needs access to URL http://192.168.15.90/prod/check_mk/view.py?view_name=nagstamon_svc&output_format=python&lang=&limit=hard&is_host_acknowledged=-1&is_service_acknowledged=-1&is_host_notifications_enabled=-1&is_service_notifications_enabled=-1 &is_host_active_checks_enabled=-1&is_service_active_checks_enabled= -1&host_scheduled_downtime_depth=-1&is_in_downtime=-1&hst0=On&hst1=On
This URL works on 2.1.0p29 and outputs the following result:
[
[‘host’, ‘service_description’, ‘service_icons’, ‘service_state’, ‘svc_check_age’, ‘svc_state_age’, ‘svc_attempt’, ‘svc_plugin_output’, ‘svc_flapping’, ‘svc_notifications_enabled’, ‘svc_is_active’, ‘svc_in_downtime’, ’ svc_acknowledged’, ‘sitename_plain’, ‘host_address’, ‘svc_check_command’],
]
Since the update to 2.2.0p3, the url responds:
ERROR: Internal error: sequence item 0: expected str instance, dict found
An internal error occurred while processing your request. You can report this issue to the Checkmk team to help fixing this issue. Please open the crash report page and use the form for reporting the problem.
In /opt/omd/sites/prod/var/log/web.log
2023-06-18 21:41:35,829 [40] [cmk.web 65262] Unhandled exception (Crash-ID: 22a06628-0e10-11ee-9653-005056861cbc)
Traceback (most recent call last):
File "/omd/sites/prod/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 192, in _process_request
resp = page_handler()
^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/wsgi/applications/utils.py", line 107, in _call_auth
func()
File "/omd/sites/prod/lib/python3/cmk/gui/pages.py", line 187, in wrapper
return hc().handle_page()
^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/pages.py", line 51, in handle_page
self.page()
File "/omd/sites/prod/lib/python3/cmk/gui/pages.py", line 146, in <lambda>
"page": lambda self: self._wrapped_callable[0](),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/page_show_view.py", line 91, in page_show_view
process_view(GUIViewRenderer(view, show_buttons=True))
File "/omd/sites/prod/lib/python3/cmk/gui/views/page_show_view.py", line 165, in process_view
_process_regular_view(view_renderer)
File "/omd/sites/prod/lib/python3/cmk/gui/views/page_show_view.py", line 178, in _process_regular_view
_export_view(view_renderer.view, rows)
File "/omd/sites/prod/lib/python3/cmk/gui/views/page_show_view.py", line 404, in _export_view
export. handler(view, rows)
File "/omd/sites/prod/lib/python3/cmk/gui/exporter.py", line 56, in _export_python
content = cell.render_for_python_export(join_row(row, cell))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/painter/v0/base.py", line 587, in render_for_python_export
content = self.painter().export_for_python(row, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/painter/v0/base.py", line 231, in export_for_python
return self._compute_data(row, cell)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/painter/v0/base.py", line 206, in _compute_data
return self.render(row, cell)[1]
^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/icon/painter.py", line 74, in render
return _paint_icons("service", row)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/prod/lib/python3/cmk/gui/views/icon/painter.py", line 119, in _paint_icons
return "icons", " ".join(i.icon_name for i in toplevel_icons if isinstance(i, IconEntry))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, dict found
I find a workaround by deleting all downtime hosts, but I don’t understand the link…
I created a new site and the problem does not arise.
I really don’t understand where the problem can from?