Module: check_mk
Branch: master
Commit: ba770bf7bced4f83eed65e84b81551d4f593e45b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba770bf7bced4f…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 16 14:55:16 2016 +0100
3010 FIX Fixed vanished snmp subchecks for snmp hosts
SNMP subchecks for snmp hosts did not work when the host did not have the host tag
'snmp'.
---
.werks/3010 | 10 ++++++++++
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3010 b/.werks/3010
new file mode 100644
index 0000000..f55732b
--- /dev/null
+++ b/.werks/3010
@@ -0,0 +1,10 @@
+Title: Fixed vanished snmp subchecks for snmp hosts
+Level: 2
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1458135856
+
+SNMP subchecks for snmp hosts did not work when the host did not have the host tag
'snmp'.
diff --git a/ChangeLog b/ChangeLog
index 317f7b0..d6d0a80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -84,6 +84,7 @@
* 3098 FIX: isc_dhcpd: fixed handling of leases that never expire
* 3099 FIX: mk_mysql: worked around problems where running instances can't be
discovered
* 3009 FIX: ESX agent: fixed exception with utf-8 encoded strings...
+ * 3010 FIX: Fixed vanished snmp subchecks for snmp hosts...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 9d98341..2274b0b 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -508,7 +508,7 @@ def active_check_service_description(act_info, params):
def is_snmp_check(check_name):
- return check_name in snmp_info
+ return check_name.split(".")[0] in snmp_info
def is_tcp_check(check_name):