Curious if we can match this command from check_ec2.pysgargano wrote:aws cloudwatch get-metric-statistics --metric-name CPUCreditBalance --start-time 2019-05-28T10:18:00Z --end-time 2019-05-28T11:18:00Z --period 3600 --namespace AWS/EC2 --statistics Maximum --dimensions Name=InstanceId,Value=i-xxxxxxx
Code: Select all
./check_ec2.py -P 5 --metricname CPUCreditBalance --statistics Maximum --period 60 --instanceid 'i-xxxx' --accesskeyid 'xxxxxxxxxx' --secretaccesskey 'xxxxxxxxxxx' --region 'eu-central-1' --warning '100:' --critical '25:' -v