Module: check_mk
Branch: master
Commit: 00267e9c4ce882bfa67e3edea07988d5b1313a2e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00267e9c4ce882…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Apr 15 13:04:33 2019 +0200
agent_aws: ELB/Limits provides load balancer info for other ELB sections
Change-Id: Ic5a5e50a847f8adf48ee932a62d36333d5bf0587
---
cmk/special_agents/agent_aws.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk/special_agents/agent_aws.py b/cmk/special_agents/agent_aws.py
index 9968675..6db2ef1 100644
--- a/cmk/special_agents/agent_aws.py
+++ b/cmk/special_agents/agent_aws.py
@@ -1588,7 +1588,10 @@ class ELBSummary(AWSSectionGeneric):
return 300
def _get_colleague_contents(self):
- return AWSColleagueContents(None, 0.0)
+ colleague = self._received_results.get('elb_limits')
+ if colleague and colleague.content:
+ return AWSColleagueContents(colleague.content, colleague.cache_timestamp)
+ return AWSColleagueContents([], 0.0)
def _fetch_raw_content(self, colleague_contents):
found_load_balancers = []