Branch: refs/heads/1.6.0
Home: https://github.com/tribe29/checkmk
Commit: c0cbf738bf225595042c47149493c6d4c6d864aa
https://github.com/tribe29/checkmk/commit/c0cbf738bf225595042c47149493c6d4c…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/plugins/views/builtin_inventory_plugins.py
M cmk_base/discovered_labels.py
M cmk_base/inventory.py
M inventory/lnx_distro
M tests/unit/cmk/gui/test_views.py
M tests/unit/cmk_base/test_discovered_labels.py
Log Message:
-----------
Cleanup discovered host labels
* Same API for DiscoveredHostLabels and DiscoveredServiceLabels
* Removed depdendency to StructuredStatusTree from DiscoveredHostLabels
CMK-2458
Change-Id: I74bdbd899be8804a99457aab9a3647e082732963
Commit: 561022f5f30c2890240f601442140cf495ce11e5
https://github.com/tribe29/checkmk/commit/561022f5f30c2890240f601442140cf49…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk_base/discovered_labels.py
M tests/unit/cmk_base/test_discovery.py
Log Message:
-----------
Cleanup dead code
CMK-2458
Change-Id: I95618441ff0fd231a11241089136a4435e3def4f
Commit: 7f0545d978a6f9cc59c7b706714299f1b9729c9b
https://github.com/tribe29/checkmk/commit/7f0545d978a6f9cc59c7b706714299f1b…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/plugins/wato/inventory.py
M cmk_base/config.py
M cmk_base/discovered_labels.py
M cmk_base/inventory.py
R inventory/labels
M inventory/lnx_distro
M tests/unit/cmk_base/test_config.py
M tests/unit/cmk_base/test_discovered_labels.py
Log Message:
-----------
Remove host label discovery from HW/SW inventory
The host label discovery will also be done by the discovery function of
the checks in the future. The just removed functionality will be added
back soon. See following commits for details.
CMK-2458
Change-Id: I9921f475b576fb4886773fa24c8112c6977d146f
Commit: 9018f2702337588c0fda60d77a46de1f258276cd
https://github.com/tribe29/checkmk/commit/9018f2702337588c0fda60d77a46de1f2…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/utils/labels.py
M cmk_base/check_api.py
M cmk_base/check_api_utils.py
M cmk_base/discovered_labels.py
M cmk_base/discovery.py
M tests/unit/cmk_base/test_config.py
M tests/unit/cmk_base/test_discovered_labels.py
Log Message:
-----------
Start implementing discovery of host labels via check discovery
* Discovery functions can now produce host labels like this:
yield HostLabels(
HostLabel(u"os", u"Windows", plugin_name="windows_updates"),
HostLabel(u"type", u"security", plugin_name="windows_updates"),
)
Which adds the two host labels os:Windows and type:security to the host.
* Host labels are now read / updated / saved when the discovery while
the discovery is executed manually (cmk_base.discovery._do_discovery_for)
* Next steps: Add the host label handling to the discovery check, bulk
discovery and service discovery page functions.
Advantages over the previous HW/SW approach:
* Discovery logic with the optional automatic activation of changes can be used.
* The discovery page can be used to visualize changes in the amount of host labels
* The labels can be discovered incrementally (just like services) with
-I, -II and --only-checks flags of the discovery
* CEE: The DCD can immediately add host labels just by enabling the
service discovery for a DCD connection.
CMK-2458
Change-Id: I19afd4d2e8c553015ed8325688813a0f72208fdc
Commit: 9eb6ba1b678a3ded5a776057b7a4332c9871f469
https://github.com/tribe29/checkmk/commit/9eb6ba1b678a3ded5a776057b7a4332c9…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/plugins/wato/check_mk_configuration.py
M cmk_base/config.py
M cmk_base/discovery.py
Log Message:
-----------
Add host label discovery info to Checkmk discovery checks
* New discovered host labels now trigger a warning state by default.
This state can be configured using the "Periodic service discovery"
ruleset.
* New host labels may trigger an "automatic configuration update" when
any mode different than "Remove vanished services" is configured.
CMK-2458
Change-Id: I7a1a4fac08a2af6a6d2ed4467c30c336ce76b8d7
Commit: cdf0e5192eb7eafca66104d0b2de9a9c019fdb41
https://github.com/tribe29/checkmk/commit/cdf0e5192eb7eafca66104d0b2de9a9c0…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/watolib/bulk_discovery.py
M cmk_base/automations/check_mk.py
M cmk_base/discovery.py
Log Message:
-----------
Show information about discovered host labels in bulk discovery
CMK-2458
Change-Id: I0cc96a4349ed35111fc53c2ebb51c3045f3cb79a
Commit: d143844a2471e35cda5c7e3e4d694a5835f46cab
https://github.com/tribe29/checkmk/commit/d143844a2471e35cda5c7e3e4d694a583…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/wato/pages/services.py
M cmk_base/automations/check_mk.py
M cmk_base/discovery.py
Log Message:
-----------
Show discovered host labels on WATO discovery page
Display the discovered labels by plugin in a table above the services.
CMK-2458
Change-Id: I3d435621953195630ffa80c9ec125470573e2017
Commit: 1b6c73b49daa9ce734064b257139796161696ad1
https://github.com/tribe29/checkmk/commit/1b6c73b49daa9ce734064b25713979616…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
A .werks/8841
Log Message:
-----------
8841 Change internal mechanic of discovered host labels
The discovered host labels which were introduced during the first beta
versions of Checkmk 1.6 had to be reworked for some reasons. The new
implementation is now based on the Service discovery mechanism, which
makes several things a lot easier for us.
Host labels are now discovered during the procedure of Checkmk service
discovery. All discovery functions of the checks are able to either
discover services and host labels.
<ul>
<li>The "Check_MK Discovery" service tells you about new found host labels,
just like about services.</li>
<li>You can use the "Service discovery" page of WATO to view the discovered
host labels. New discovered host labels now trigger a warning state by default.
This state can be configured using the "Periodic service discovery" ruleset.
<li>The automatic activation function, that can be configured in the "Periodic
service discovery" ruleset may be used to automatically add new host labels on
a regular base.</li>
<li>Whenever you execute a service discovery (via command line, GUI or API),
the host labels will also be discovered.</li>
<li>CEE: The DCD can immediately add host labels when you have enabled the
service discovery for a DCD connection.</li>
</ul>
Check programmers: You may add something like this to your discovery
functions for creating host labels:
C+:
yield HostLabels(
HostLabel(u"os", u"Windows"),
HostLabel(u"type", u"security"),
)
C-:
This adds two host labels os:Windows and type:security to the host.
Change-Id: I83f6f411eeaeabcd5ded70e827264cee693cd9d0
Commit: 45dd19cafddae013ad5f88236f0a0a7e12cf837f
https://github.com/tribe29/checkmk/commit/45dd19cafddae013ad5f88236f0a0a7e1…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M tests/unit/checks/checktestlib.py
Log Message:
-----------
Ignore host label discovery in generic tests for the moment
Change-Id: I5081bc1aca5f1989a5e171631d74303ea4c5efed
Commit: a56a5f6c7f1df6b439eb6762cc7f415ebb2c1471
https://github.com/tribe29/checkmk/commit/a56a5f6c7f1df6b439eb6762cc7f415eb…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
A checks/labels
M tests/unit/cmk/utils/test_man_pages.py
Log Message:
-----------
labels: Add plugin to discover generic host labels
Change-Id: I1847923305d7e2d9be0874d031a03c9a358c61c1
Commit: ccbd16efdc523374a90c8478e545787671601f86
https://github.com/tribe29/checkmk/commit/ccbd16efdc523374a90c8478e54578767…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk_base/data_sources/piggyback.py
Log Message:
-----------
Introduce source labels for piggybacked hosts
Each host that receives piggybacked information now get's one label
added per piggyback source. Since a host can get data from multiple
piggyback sources we need to use a scheme like this:
<tt>cmk/piggyback_source_[hostname]:yes</tt>
E.g. in case of a docker container, which only receives the piggyback
data from it's docker node named "docker1", a label
<tt>cmk/piggyback_source_docker1:yes</tt> will be added to the containers
of this node.
Change-Id: Ib49d4cbe766a8e3112af8257446affdff978d34b
Commit: cda09916f3ebb580fadc7f88f6833b9964bb4d17
https://github.com/tribe29/checkmk/commit/cda09916f3ebb580fadc7f88f6833b996…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
A .werks/8840
M checks/docker_container_status
M checks/docker_node_info
M checks/omd_status
Log Message:
-----------
8840 Docker: Introduce host labels for different docker hosts
Docker nodes will now automatically marked with the discovered label "cmk/docker_object:node".
The docker container host objects will be marked with the host label "cmk/docker_object:container".
We'll use the "cmk/" prefix for all our internal labels from now.
Change-Id: Ifce3444ddaadf7cc043a44679c7dc2ffcdc5a18a
Commit: b78f021d40f016dc73573ede9a62120f08c9ddb6
https://github.com/tribe29/checkmk/commit/b78f021d40f016dc73573ede9a62120f0…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/plugins/views/painters.py
Log Message:
-----------
Docker node painter for containers
Add a docker node painter to show the name of the docker node the
container is executed on. Linking to the details page of that host.
Change-Id: Ic1a7e71b32e7156194000ef63c33586cabdadce4
Commit: 29c5a8092f4cbc23a27c8e80d349f17f049c587a
https://github.com/tribe29/checkmk/commit/29c5a8092f4cbc23a27c8e80d349f17f0…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/plugins/views/builtin.py
M tests/unit/cmk/gui/test_gui_config.py
Log Message:
-----------
Docker views
Based on the recently added labels there are two new views that
list the docker containers and nodes.
Change-Id: I1ccd32b943b3428fb00e51f5c54b8974e88c5b35
Commit: c5fe112ccc192bcb36ec200ee9dfd60bfe7b3e34
https://github.com/tribe29/checkmk/commit/c5fe112ccc192bcb36ec200ee9dfd60bf…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M .werks/8841
A .werks/8842
M checks/docker_container_status
M checks/docker_node_info
M checks/omd_status
M cmk_base/discovery.py
M cmk_base/dump_host.py
M tests/unit/checks/checktestlib.py
Log Message:
-----------
8842 Show host labels in "cmk -D HOST" output
The effective host labels can now be displayed on
the command line using "cmk -D HOST".
Change-Id: If9b0b7571c10d8880398cdefeddefc8ade9d3df5
Commit: 37683361f63c212939714f1e85fd1619b924b977
https://github.com/tribe29/checkmk/commit/37683361f63c212939714f1e85fd1619b…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/utils/labels.py
M cmk_base/discovered_labels.py
Log Message:
-----------
Skip old discovered labels as early as possible
Change-Id: Iad5dd9cc38be480a84b80aab807d6c15bff2b56a
Compare: https://github.com/tribe29/checkmk/compare/170bf2ade5ec...37683361f63c
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: e0070548b2e4833e8ec749ac94e51ed02f595eac
https://github.com/tribe29/checkmk/commit/e0070548b2e4833e8ec749ac94e51ed02…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M cmk/gui/watolib/automations.py
Log Message:
-----------
CMK-2233: New Agent Bakery/Agent Updater API
- Change the agent bakery responses (body content) from
plain text to application/json.
- Also send the agent ("agent_deployment.py?mode=agent")
as a base64-encoded string within the json data.
- The agent bakery will send json content only if it
receives the "au_api" keyword from the agent updater.
Otherwise, legacy handling will be enabled in order
to support older agent updater that expect plain text
responses.
- While the agent bakery is downward compatible to
older agent updaters, the agent updater is not compatible
to older agent bakeries that don't send json-data
- This new api is a preperation step and is needed
for sending the update URL to the agent updater on
registration step.
- The initial "au_api" version is specified as "2",
the old plain-text communication implicitly resolves
to "au_api = 1"
Change-Id: Ib1799e21507f4cac904909ad91cbf4126ac639e7
Commit: 4b8e99001ee25511253b90c58d03d64de304a6db
https://github.com/tribe29/checkmk/commit/4b8e99001ee25511253b90c58d03d64de…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M tests/unit/cmk/gui/watolib/test_watolib.py
Log Message:
-----------
CMK-2234: Make URL to agent bakery on remote server configurable
- Add global setting for URL from host to remote server
- Find update_url by testing multiple configuration variables
for the best match.
Change-Id: I121a915d6b65e90837b0bedc627ed07807016f51
Compare: https://github.com/tribe29/checkmk/compare/9735e61833f9...4b8e99001ee2
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 9735e61833f9d19ae134c7be8a997eeec4752151
https://github.com/tribe29/checkmk/commit/9735e61833f9d19ae134c7be8a997eeec…
Author: Lukas Lengler <lukas.lengler(a)tribe29.com>
Date: 2019-08-01 (Thu, 01 Aug 2019)
Changed paths:
M tests/unit/agents/plugins/test_mk_logwatch.py
M tests/unit/agents/plugins/test_mk_logwatch_aix.py
M tests/unit/checks/conftest.py
Log Message:
-----------
Use of tmp_path in tests/unit (fourth part) and testlib/cee/dcd_test.py
Change-Id: Ibec92eaa89b008d80e3ef37c031ca2faebb14b5a