Module: check_mk
Branch: master
Commit: 220f739883babd886ee4a0e36f1ea4a3436ca678
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=220f739883babd…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Feb 24 13:14:12 2016 +0100
#2997 FIX Fixed broken SNMP subchecks
Fixed recently introduced bug (#3214) which removed all SNMP subchecks from monitoring.
---
.werks/2997 | 9 +++++++++
ChangeLog | 1 +
modules/check_mk.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/2997 b/.werks/2997
new file mode 100644
index 0000000..558dcb4
--- /dev/null
+++ b/.werks/2997
@@ -0,0 +1,9 @@
+Title: Fixed broken SNMP subchecks
+Level: 2
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1456315853
+Class: fix
+
+Fixed recently introduced bug (#3214) which removed all SNMP subchecks from monitoring.
diff --git a/ChangeLog b/ChangeLog
index f47a466..70e793c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -43,6 +43,7 @@
* 3227 FIX: Automatic service adding: Fixed exception when using time range to skip
automatic configuration...
* 3178 FIX: docsis_channels_upstream: Fixed crash in graphs
* 3082 FIX: windows agent: with realtime updates active, shutting down the agent
could take very long
+ * 2997 FIX: Fixed broken SNMP subchecks...
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 92b5434..07573fe 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -513,7 +513,7 @@ def is_snmp_check(check_name):
def is_tcp_check(check_name):
return check_name in check_info \
- and check_name not in snmp_info
+ and check_name.split(".")[0] not in snmp_info # snmp check basename
#.