sensu-plugins / sensu-plugins-aws

This plugin provides native AWS instrumentation for monitoring and metrics collection, including: health and metrics for various AWS services, such as EC2, RDS, ELB, and more, as well as handlers for EC2, SES, and SNS.

Home Page:http://sensu-plugins.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check-instance-health.rb --filter not working

ChrisMKinsella opened this issue · comments

When I run:

check-instance-health.rb --filter 'Name=tag:Name,Values=container-host-large-prod-0' --aws-region eu-central-1

The filter tag is ignored so it returns ALL instances with failing status checks in the Account.

CheckInstanceEvents CRITICAL: 2 instances have: i-0450xxxx6d9c2da13 has failed instance status checks,i-059eexxxa54f79ea6 has failed instance status checks```

I have tried the --filter tag with these variations with the same result:

'Name=tag:Name,Values=container-host-large-prod-0'
"Name=tag:Name,Values=container-host-large-prod-0"
Name=tag:Name,Values=container-host-large-prod-0