We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #8861: DCD: Gracefully handle single host issues when creating hosts

ComponentCore & Setup
TitleDCD: Gracefully handle single host issues when creating hosts
Date2019-08-16 15:11:54
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.6.0b7,1.7.0i1
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

When one of multiple hosts could not be created or modified by a execution, this resulted in a complete termination of the execution. A persistent issue could totally break a connection, since no further steps would be executed.

As first step the "add_hosts" and "edit_hosts" API call has been extended to report back the result of a call. The structure looks like this:

{
"succeeded_hosts": ["host1", "host3"],
"failed_hosts": {
"host2": "an error occured ...",
},
}

The DCD reads this response and logs the result. In case there have been hosts added, the discovery is performed for them. After that, the connection continues with the following steps.