Module: check_mk
Branch: master
Commit: c309c7b794758866a88e04695428c74c72677dd0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c309c7b7947588…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 2 11:09:26 2019 +0200
Move config.cmc_service_check_timeout processing to CEEConfigCache
CMK-2030
Change-Id: Ia334a6d82b89d19e0c42b417258e4f4fd3fe9ff8
---
cmk_base/config.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/cmk_base/config.py b/cmk_base/config.py
index 2b9a972..d6f177e 100644
--- a/cmk_base/config.py
+++ b/cmk_base/config.py
@@ -3695,6 +3695,15 @@ class CEEConfigCache(ConfigCache):
spec.update(entry)
return spec
+ def check_timeout_of_service(self, hostname, description):
+ # type: (str, Text) -> int
+ """Returns the check timeout in seconds"""
+ entries = self.service_extra_conf(hostname, description,
cmc_service_check_timeout)
+ if not entries:
+ return cmc_check_timeout
+
+ return entries[0]
+
# TODO: Find a clean way to move this to cmk_base.cee. This will be possible once the
# configuration settings are not held in cmk_base.config namespace anymore.