Module: check_mk
Branch: master
Commit: 94cc82f4d57ed693ad91c5ce3b25c3310476a2e8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=94cc82f4d57ed6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Feb 26 13:36:45 2019 +0100
agent_aws: Add some comments for ELB and S3 limits sections
Change-Id: Iaf485699a3ac5cf8a3f447611fe56ec7eec8cc6b
---
agents/special/agent_aws | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 678bb3a..2355f56 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -635,6 +635,10 @@ class S3Limits(AWSSectionLimits):
return AWSColleagueContents(None, 0.0)
def _fetch_raw_content(self, colleague_contents):
+ """
+ There's no API method for getting account limits thus we have to
+ fetch all buckets.
+ """
response = self._client.list_buckets()
try:
return response['Buckets']
@@ -901,6 +905,11 @@ class ELBLimits(AWSSectionLimits):
return AWSColleagueContents(None, 0.0)
def _fetch_raw_content(self, colleague_contents):
+ """
+ The AWS/ELB API method 'describe_account_limits' provides limit values
+ but no values about the usage per limit thus we have to gather the usage
+ values from 'describe_load_balancers'.
+ """
response = self._client.describe_load_balancers()
try:
load_balancers = response['LoadBalancerDescriptions']