Module: check_mk
Branch: master
Commit: d2b93aba6624779aae3a1b9a6abe13ed62a81bb6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d2b93aba662477…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Sep 16 11:05:03 2011 +0200
FIX: fix cmk -D on cluster hosts
---
ChangeLog | 3 +++
modules/check_mk.py | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d3c66bd..e88f145 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.1.12b1:
+ Core, Setup, etc.:
+ * FIX: fix cmk -D on cluster hosts
+
Checks & Agents:
* FIX: j4p_performance: fix inventory functions
* mrpe: make check cluster-aware and work as clustered_service
diff --git a/modules/check_mk.py b/modules/check_mk.py
index d69efe2..a6bb428 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3137,6 +3137,10 @@ def dump_host(hostname):
if is_cluster(hostname):
color = tty_bgmagenta
add_txt = " (cluster of " + (",".join(nodes_of(hostname))) +
")"
+ try:
+ ipaddress = lookup_ipaddress(hostname)
+ except:
+ ipaddress = "0.0.0.0"
else:
color = tty_bgblue
try: