Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: dd730f940074d9cd7da3018a9e08f458c40a27c6
https://github.com/tribe29/checkmk/commit/dd730f940074d9cd7da3018a9e08f458c…
Author: Wontek Hong <wontek.hong(a)tribe29.com>
Date: 2022-07-06 (Wed, 06 Jul 2022)
Changed paths:
A .werks/14341
M cmk/gui/plugins/openapi/endpoints/service_discovery.py
M cmk/gui/plugins/openapi/restful_objects/type_defs.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_service_discovery.py
Log Message:
-----------
14341 FIX service_discovery: reimplementation of execute discovery mode endpoint
Previously, only the update detection mode provided the desired result, while all other
modes either had no
effect or behaved differently than described. This werk reimplements the discover_services
action endpoint.
In addition, the descriptions of certain modes are changed to better reflect the intended
action. All modes
return the same response schema as before expect the refresh option.
The refresh option starts a background job. The response is therefore different from the
other mode responses and
contains a redirect link to the current status of the running job. The job status can also
be directly queried
directly via the new endpoint /domain-types/service_discovery_run/{host_name} endpoint.
Change-Id: I15b7ec5107d5200f33a14b4e4e7e570c155f6b3b
Commit: e87da80ed3ef30a22adcdbfcd903544fa907895c
https://github.com/tribe29/checkmk/commit/e87da80ed3ef30a22adcdbfcd903544fa…
Author: Wontek Hong <wontek.hong(a)tribe29.com>
Date: 2022-07-06 (Wed, 06 Jul 2022)
Changed paths:
A .werks/14537
M cmk/gui/plugins/openapi/endpoints/service_discovery.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_service_discovery.py
Log Message:
-----------
14537 service_discovery: addition of new endpoint to show full service discovery result
This werk introduces the new /objects/service_discovery/{host_name} endpoint which
returns the latest service discovery result of a host. The response object includes the
check table with all discovered services, the host labels, the vanished and new labels.
The existing /domain-types/service/collections/services endpoint, which only returned the
discovered services of a specific phase is deprecated and will be removed with Checkmk
2.3.
Users should consider migrating the functionalities to the new endpoint.
Change-Id: I302deadf92a1bbebe421edef36e9ddc4a9b76f69
Compare:
https://github.com/tribe29/checkmk/compare/ab50dc60eb20...e87da80ed3ef