Module: check_mk
Branch: master
Commit: d7302d02a6e10d16bce7b62345aa32a12752384a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d7302d02a6e10d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 17 09:02:35 2019 +0100
7073 New API call to control bulk discovery
Two new web API calls have been added for the bulk discovery. The call
<tt>bulk_discovery_start</tt> has been added to start a bulk discovery for
a collection of hosts which will be executed asynchronously. The call
<tt>bulk_discovery_status</tt> can be used to get the status of such a
job.
The <tt>bulk_discovery_start</tt> call requires the
<tt>hostnames</tt>
parameter to be a list of host names to execute the discovery for. It
accepts the following optional keys:
<ul>
<li>mode (default: "new")</li>
<li>use_cache (default: True)</li>
<li>do_scan (default: True)</li>
<li>bulk_size (default: 10)</li>
<li>ignore_single_check_errors (default: True)</li>
</ul>
The defaults may be customized using the global setting <i>Bulk
discovery</i>.
The global setting also describes the possible options in detail.
The <tt>bulk_discovery_status</tt> call does not accept any parameter.
Change-Id: I7e01458246a5abc68026a7330a202f19ec1ca093
---
.werks/7073 | 31 +++++++
cmk/gui/plugins/webapi/bulk_discovery.py | 141 +++++++++++++++++++++++++++++++
cmk/gui/wato/pages/bulk_discovery.py | 31 ++-----
cmk/gui/watolib/bulk_discovery.py | 34 ++++++--
tests/integration/cmk/gui/test_webapi.py | 81 +++++++++++++++++-
tests/testlib/__init__.py | 14 +++
tests/unit/cmk/gui/test_webapi_unit.py | 2 +
7 files changed, 304 insertions(+), 30 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d7302d02a6…