in precompiled host checks
Message-ID: <54b7f16c.ExPSyJBmhOrQn9EJ%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: b3aa634df5e18ff5346506ef3b51acf77fc2ff62
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3aa634df5e18f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 15 17:57:15 2015 +0100
Fix problem with missing clusters_of() in precompiled host checks
---
modules/check_mk.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index b57994f..bf0dcc4 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2813,6 +2813,8 @@ no_inventory_possible = None
else:
output.write("clusters = {}\ndef is_cluster(hostname):\n return
False\n\n")
+ output.write("def clusters_of(hostname):\n return %r\n\n" %
clusters_of(hostname))
+
# snmp hosts
output.write("def is_snmp_host(hostname):\n return %r\n\n" %
is_snmp_host(hostname))
output.write("def is_tcp_host(hostname):\n return %r\n\n" %
is_tcp_host(hostname))