Module: check_mk
Branch: master
Commit: 165557b035938a6a76765e9c3eadfa24f46eb94b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=165557b035938a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 19 16:23:42 2018 +0200
6349 FIX Fixed not working "manual checks" in Check_MK Raw Edition
Manual checks, often used for "process checks" were not executed
when using the Check_MK Raw Edition. All configured manual checks
became stale after some time and were never checked.
Change-Id: Ic800ce63678ae2e17dfe4f6cf03d5a62c1abb833
---
.werks/6349 | 13 +++++++++++++
cmk_base/config.py | 7 ++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/.werks/6349 b/.werks/6349
new file mode 100644
index 0000000..3728f68
--- /dev/null
+++ b/.werks/6349
@@ -0,0 +1,13 @@
+Title: Fixed not working "manual checks" in Check_MK Raw Edition
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1531598131
+
+Manual checks, often used for "process checks" were not executed
+when using the Check_MK Raw Edition. All configured manual checks
+became stale after some time and were never checked.
diff --git a/cmk_base/config.py b/cmk_base/config.py
index 3f2884b..e63d1c5 100644
--- a/cmk_base/config.py
+++ b/cmk_base/config.py
@@ -177,7 +177,7 @@ def _perform_post_config_loading_actions():
# In case the checks are not loaded yet it seems the current mode
# is not working with the checks. In this case also don't load the
# static checks into the configuration.
- if all_checks_loaded():
+ if any_check_loaded():
add_wato_static_checks_to_checks()
initialize_check_caches()
set_check_variables_for_checks()
@@ -2201,6 +2201,11 @@ def all_checks_loaded():
return _all_checks_loaded
+def any_check_loaded():
+ """Whether or not some checks have been loaded into the current
process"""
+ return bool(_check_contexts)
+
+
# Constructs a new check context dictionary. It contains the whole check API.
def new_check_context(get_check_api_context):
# Add the data structures where the checks register with Check_MK