Module: check_mk
Branch: master
Commit: df9ea24fda8c4a088a2f31f5a0c99934dd264f5d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=df9ea24fda8c4a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 22 14:27:44 2015 +0200
Put service level information into packed configuration
---
modules/check_mk.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 1bab85b..09d6dea 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3510,7 +3510,10 @@ def get_precompiled_check_parameters(hostname, item, params,
check_type):
# use those files, so that changes in the actual config do not harm
# the running system.
-derived_config_variable_names = [ "hosttags" ]
+# Make service levels available during check execution
+service_service_levels = extra_service_conf.get("_ec_sl", [])
+host_service_levels = extra_host_conf.get("_ec_sl", [])
+derived_config_variable_names = [ "hosttags",
"service_service_levels", "host_service_levels" ]
# These variables are part of the Check_MK configuration, but are not needed
# by the Check_MK keepalive mode, so exclude them from the packed config