Module: check_mk
Branch: master
Commit: 41f4fbad44f71090bbd39db0f04d36ddee6ab04a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=41f4fbad44f710…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 25 09:12:38 2011 +0100
cmk -D: show ip address of host
---
.bugs/106 | 10 +++++++---
ChangeLog | 3 +++
modules/check_mk.py | 2 +-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/.bugs/106 b/.bugs/106
index 7cf0ec6..ea015df 100644
--- a/.bugs/106
+++ b/.bugs/106
@@ -1,11 +1,15 @@
Title: cmk -D should show ipaddress
Component: core
+State: done
+Class: feature
+Date: 2011-01-24 16:33:31
Benefit: 1
-State: open
Cost: 1
-Date: 2011-01-24 16:33:31
-Class: feature
+Fun: 0
The dump of a output (cmk -D) should show the hosts
IP addresses and maybe also if it was retrieved via
DNS, fakedns or other.
+
+2011-01-25 09:12:12: changed state open -> done
+Is now shown.
diff --git a/ChangeLog b/ChangeLog
index bc906f1..dc5c53a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.1.9i6:
+ Core, Setup, etc.:
+ * cmk -D: show ip address of host
+
Checks & Agents:
* megaraid_ldisks: remove debug output
* fc_brocade_port: hide on SNMP scan, prefer fc_brocade_port_detailed
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8192910..2a06e50 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2839,7 +2839,7 @@ def dump_host(hostname):
add_txt = " (cluster of " + (",".join(nodes_of(hostname))) +
")"
else:
color = tty_bgblue
- add_txt = ""
+ add_txt = " (%s)" % lookup_ipaddress(hostname)
print "%s%s%s%-78s %s" % (color, tty_bold, tty_white, hostname + add_txt,
tty_normal)
tags = tags_of_host(hostname)