AWS EBS check times out quite often

I have been testing the AWS EBS check not the checkmk 2.0 raw editon and it times out quite request and loses data on certain ebs volume.

This happens only with EBS but not with any other AWS check on the same account.

Just encounter possibly the same issue in 1.6.0p22 CEE, where the EBS Health check in EC2 hosts would go unknown. This was caused by a bug in agent_aws special agent but only for cases where affected EC2 had more than 1 EBS attached, the EBSSummary class of agent_aws would only take the last BOTO returned entry and since every run return is not ordered, the EBS Health check might recover after awhile or stay unknown longer, to fix it, modify the /omd/sites/‘site name’/lib/python/cmk/special_agents/agent_aws.py, in the EBSSummary class (if ver 2 agent_aws is different) in the def _compute_content(self, raw_content, colleague_contents) closer to the bottom replace:

for instance_name in instance_names:
content_by_piggyback_hosts.setdefault(instance_name, [vol])

with:

for instance_name in instance_names:
if instance_name in content_by_piggyback_hosts:
content_by_piggyback_hosts[instance_name].append(vol)
else:
content_by_piggyback_hosts.setdefault(instance_name, [vol])

mind the indentation