Module: check_mk
Branch: master
Commit: 2398473b7d11f96edd3db2ac349f2fa3493f7b40
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2398473b7d11f9…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu May 17 09:28:50 2018 +0200
6081 FIX Fixed info extension by node name of cluster-aware checks if host if not part of
a cluster
Change-Id: I3a9ee6eddb3743a1f4c832fadb862496ecf60dd2
---
.werks/6081 | 10 ++++++++++
cmk_base/data_sources/host_sections.py | 5 ++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/.werks/6081 b/.werks/6081
new file mode 100644
index 0000000..5767a7d
--- /dev/null
+++ b/.werks/6081
@@ -0,0 +1,10 @@
+Title: Fixed info extension by node name of cluster-aware checks if host if not part of a
cluster
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1526541876
+Class: fix
+
+
diff --git a/cmk_base/data_sources/host_sections.py
b/cmk_base/data_sources/host_sections.py
index 93eb386..ad0c662 100644
--- a/cmk_base/data_sources/host_sections.py
+++ b/cmk_base/data_sources/host_sections.py
@@ -194,9 +194,8 @@ class MultiHostSections(object):
if check_plugin_name not in checks.check_info or not
checks.check_info[check_plugin_name]["node_info"]:
return section_content # unknown check_plugin_name or does not want node info
-> do nothing
- if for_discovery:
- node_name = None
- else:
+ node_name = None
+ if not for_discovery and config.clusters_of(hostname):
node_name = hostname
return self._add_node_column(section_content, node_name)