Module: check_mk
Branch: master
Commit: d64433fafba9473facd0cc37d93951adcb0dcb53
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d64433fafba947…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Thu Jan 31 11:05:14 2019 +0100
k8s_nodes: add WATO rule, move node names to inventory
Adapt the k8s_nodes check to only show the total number
of nodes. Upper and lower levels for the number of nodes
can now be defined via WATO. The names of the nodes that
were shown previously in the check are now listed in the
HW/SW Inventory.
Change-Id: Iba367fcab511ca416ba3d2e82ec3c4196b5466a0
---
checkman/k8s_nodes | 2 +-
checks/k8s_nodes | 16 ++++--
cmk/gui/plugins/views/inventory.py | 9 +++-
cmk/gui/plugins/wato/check_parameters/k8s_nodes.py | 62 ++++++++++++++++++++++
inventory/k8s_nodes | 39 ++++++++++++++
tests/unit/cmk/gui/test_views.py | 8 +++
tests/unit/cmk/gui/watolib/test_rulespecs.py | 32 +++++++++++
7 files changed, 162 insertions(+), 6 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d64433fafb…