Module: check_mk
Branch: master
Commit: b4aa7c9c03d0676dacd9df90b6cab22ac5215ac9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4aa7c9c03d067…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Apr 25 14:36:48 2016 +0200
3425 FIX Fixed extra section handling if no related check plugin exists
---
.werks/3425 | 10 ++++++++++
ChangeLog | 1 +
modules/nagios.py | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/3425 b/.werks/3425
new file mode 100644
index 0000000..b3d8fe2
--- /dev/null
+++ b/.werks/3425
@@ -0,0 +1,10 @@
+Title: Fixed extra section handling if no related check plugin exists
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461587736
+
+
diff --git a/ChangeLog b/ChangeLog
index 2345416..1707ac5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -183,6 +183,7 @@
* 3463 FIX: ups_modulys_alarms: avoid crash on some SOCOMEC UPS where some alarm OIDs
are empty
* 3464 FIX: netstat.linux: fix monitoring of UDP listeners...
* 3523 FIX: esx_vsphere_hostsystem: fixed exception when no multipath state info is
available
+ * 3425 FIX: Fixed extra section handling if no related check plugin exists
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/modules/nagios.py b/modules/nagios.py
index cd22a3a..a66ea42 100644
--- a/modules/nagios.py
+++ b/modules/nagios.py
@@ -1036,7 +1036,8 @@ no_discovery_possible = None
continue
if check_info[check_type].get("extra_sections"):
for section in check_info[check_type]["extra_sections"]:
- needed_check_types.add(section)
+ if section in check_info:
+ needed_check_types.add(section)
needed_sections.add(section.split(".")[0])
period = check_period_of(hostname, descr)
if period: