Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.03.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

General debug options

Increase the log level

...

Manual execution 

As described in Solution 9472664, you can grab the URLs and try them inside a script or via the browser, e.g.:

Note

Since check 2.1, the DCD uses the REST API. Checkmk 1.6 is using the WEB-API to create a host (https://docs.checkmk.com/latest/en/web_api_references.htmlCheckmk REST API)


Code Block
languagebash
themeRDark
2022-05-13 13:37:35,970 [10] [cmk.dcd.web_api] > [GET] http://localhost:5005/mysite/check_mk/api/1.0/domain-types/host_config/collections/all 

...

When running the DCD, you may face the following issue:

Screenshot of Dynamic host management. Error during phase 2.2. Fetching existing hostsImage Modified


Code Block
languagebash
themeRDark
ERROR An exception occurred
Traceback (most recent call last):
	File “/omd/sites/mysite/lib/python3/cmk/cee/dcd/connectors.py:, line 229, in _execute_phase2
		Cmk hosts = self._web_api.get_all_hosts()
	File “/omd/sites/mysite/lib/python3.9/site-packages/request/models.py:, line 960, in raise_for_status…
		Raise HTTPError (http_error_msg, response=self)
request.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url:
http://localhost:5005/mysite/check_mk/api/1.0/domain-types/host_config/collections/all


Solution

Grab the URL and paste it into the browser. 

Screenshot of browser window of error Server was about to send an invalid response.Image Modified


Note

In that case, custom attributes were used, which caused trouble. In this specific case, the wato plugin "wato_geo_fields.py" from the Checkmk treasures was used.

A workaround would be to remove all custom values and run the DCD again. This issue is already reported internally.

...

Filter by label (Content by label)
showLabelsfalse
max5
spacesCON
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-troubleshooting-article" and type = "page" and space = "CONKB"
labelskb-troubleshooting-article

...