Module: check_mk
Branch: master
Commit: 4c28582697ae2940c83720a16a19ba5cea3f8261
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c28582697ae29…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 27 08:16:13 2018 +0200
6036 FIX Fixed broken IP lookup in Check_MK service when using Nagios core
The "Check_MK" services of hosts were not doing IP resolution correctly,
leading to messages like "(No output returned from plugin)" and non working
checking for these hosts.
Change-Id: I0c21093b1c9b96a76a8692882728c6c12c513f8c
---
.werks/6036 | 13 +++++++++++++
cmk_base/core_nagios.py | 1 -
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/6036 b/.werks/6036
new file mode 100644
index 0000000..c5b1496
--- /dev/null
+++ b/.werks/6036
@@ -0,0 +1,13 @@
+Title: Fixed broken IP lookup in Check_MK service when using Nagios core
+Level: 2
+Component: core
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1524809608
+
+The "Check_MK" services of hosts were not doing IP resolution correctly,
+leading to messages like "(No output returned from plugin)" and non working
+checking for these hosts.
diff --git a/cmk_base/core_nagios.py b/cmk_base/core_nagios.py
index faa5273..30a9a6c 100644
--- a/cmk_base/core_nagios.py
+++ b/cmk_base/core_nagios.py
@@ -1094,7 +1094,6 @@ if '-d' in sys.argv:
nodes = [ (hostname, ipaddress) ]
output.write("config.ipaddresses = %r\n\n" % needed_ipaddresses)
- output.write("ip_lookup.lookup_ip_address = lambda hostname:
config.ipaddresses.get(hostname)\n\n");
# datasource programs. Is this host relevant?