Module: check_mk
Branch: master
Commit: 7a189bb05aa15083d576c575cd78f3554bccdcd3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a189bb05aa150…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 26 08:55:18 2019 +0200
Move linux remote alert handler ruleset processing to HostConfig
CMK-2030
Change-Id: Ic0a577e5bc6c368f0d7a0afd348fa3f870709223
---
cmk_base/config.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cmk_base/config.py b/cmk_base/config.py
index e872690..c269c36 100644
--- a/cmk_base/config.py
+++ b/cmk_base/config.py
@@ -3706,3 +3706,9 @@ class CEEHostConfig(HostConfig):
settings.update(
self._config_cache.host_extra_conf_merged(self.hostname,
cmc_smartping_settings))
return settings
+
+ @property
+ def lnx_remote_alert_handlers(self):
+ # type: () -> List[Dict[str, str]]
+ return self._config_cache.host_extra_conf(self.hostname,
+
agent_config.get("lnx_remote_alert_handlers", []))