Module: check_mk
Branch: master
Commit: 236544ae6c5f34e37a42150015025557efbafa45
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=236544ae6c5f34…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 1 15:34:57 2014 +0200
Fix exception when core is Nagios
---
modules/check_mk.py | 3 ---
modules/check_mk_base.py | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 6c1b1c3..40acf4b 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -719,9 +719,6 @@ def get_snmp_character_encoding(hostname):
if len(entries) > 0:
return entries[0]
-def check_uses_snmp(check_type):
- return snmp_info.get(check_type.split(".")[0]) != None
-
def is_snmp_host(hostname):
return in_binary_hostlist(hostname, snmp_hosts)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index da5a01f..b081296 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1585,6 +1585,9 @@ def nodes_of(hostname):
g_nodesof_cache[hostname] = None
return None
+def check_uses_snmp(check_type):
+ return snmp_info.get(check_type.split(".")[0]) != None
+
def pnp_cleanup(s):
return s \
.replace(' ', '_') \