Module: check_mk
Branch: master
Commit: cf90ef3fff1f521ea0a59ce0402abdc591eb75b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf90ef3fff1f52…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 13 09:57:05 2017 +0100
CME: All hosts have the CUSTOMER custom variable set now
Change-Id: I72fde3ebaf00c92874b9abb08a2b460fe36b204b
---
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 53b40a0..fc57835 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -272,7 +272,7 @@ config_variable_names = set(vars().keys()).difference(known_vars)
# at check time (and many of what is also needed at administration time).
try:
modules = [ 'check_mk_base', 'discovery', 'snmp',
'notify', 'events',
- 'alert_handling', 'cmc', 'inline_snmp',
'agent_bakery' ]
+ 'alert_handling', 'cmc', 'inline_snmp',
'agent_bakery', 'managed' ]
for module in modules:
if module_exists(module):
load_module(module)
@@ -2936,6 +2936,9 @@ def get_host_attributes(hostname, tags):
if actions:
attrs["_ACTIONS"] = ",".join(actions)
+ if cmk.is_managed_edition():
+ attrs["_CUSTOMER"] = current_customer
+
return attrs