Module: check_mk
Branch: master
Commit: 46134a5369f113506c4e97c0073bd4cbfb643903
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=46134a5369f113…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jan 26 13:45:57 2015 +0100
#1215 FIX Include check-functions from extra_sections in precompailed checks
Due a new feature it's no possible for a check to use agent sections from foreign
checks. In some
cases this checks has a parse function. In rare cases the foreign check was not part
check_table of the host.
This had been leading to a missing parse function.
Bug not affected the cmc microcore.
---
.werks/1215 | 14 ++++++++++++++
ChangeLog | 1 +
modules/check_mk.py | 4 ++++
3 files changed, 19 insertions(+)
diff --git a/.werks/1215 b/.werks/1215
new file mode 100644
index 0000000..e37b967
--- /dev/null
+++ b/.werks/1215
@@ -0,0 +1,14 @@
+Title: Include check-functions from extra_sections in precompailed checks
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1422275822
+Class: fix
+
+Due a new feature it's no possible for a check to use agent sections from foreign
checks. In some
+cases this checks has a parse function. In rare cases the foreign check was not part
check_table of the host.
+This had been leading to a missing parse function.
+
+Bug not affected the cmc microcore.
+
diff --git a/ChangeLog b/ChangeLog
index ff04e32..ddbfd30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -106,6 +106,7 @@
* 1858 FIX: docsis_channels_downstream: allow for negative values of power in dBm
* 1847 FIX: oracle_logswitches: Fixed description of WATO rule for levels...
* 1877 FIX: printer_input/printer_output: Check can now handle non reported capacity
unit
+ * 1215 FIX: Include check-functions from extra_sections in precompailed checks...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/modules/check_mk.py b/modules/check_mk.py
index d3b5aed..2a8d31c 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2728,6 +2728,10 @@ no_inventory_possible = None
if check_type not in check_info:
sys.stderr.write('Warning: Ignoring missing check %s.\n' %
check_type)
continue
+ if check_info[check_type].get("extra_sections"):
+ for section in check_info[check_type]["extra_sections"]:
+ needed_check_types.add(section)
+ needed_sections.add(section.split(".")[0])
period = check_period_of(hostname, descr)
if period:
service_timeperiods[descr] = period