728x90
반응형
 [ec2-user@test ~]$ aws cloudwatch put-metric-alarm \
> --actions-enabled \
> --alarm-description "StatusCheckFailed_System https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/monitoring/UsingAlarmActions.html#AddingRecoverActions" \
> --namespace AWS/EC2 \
> --metric-name "StatusCheckFailed_System" \
> --period 60 \
> --statistic Average \
> --threshold 0.0 \
> --comparison-operator GreaterThanThreshold \
> --datapoints-to-alarm 2 \
> --evaluation-periods 2 \
> --alarm-name "[AutoRecovery] infra-test, i-0987a0c7be123" \
> --dimensions "Name=InstanceId,Value=i-0987a0c7be2c123" \
> --alarm-actions arn:aws:sns:ap-northeast-1:9422248123:Alert_to_Infra \
> --ok-actions arn:aws:sns:ap-northeast-1:9422248123:Alert_to_Infra
728x90
300x250

'IT > AWS' 카테고리의 다른 글

AWS CLI 로컬에서 S3로 복사  (0) 2021.08.09
AWS CLI 보안그룹 추가하기  (0) 2021.08.09
AWS CloudWatch 모니터링 값  (0) 2021.07.30
AWS S3 OAI 설정 및 ClientLog 쪽 Deny 처리  (0) 2021.07.22
AWS Extend Switch Roles 설정  (0) 2021.07.01

+ Recent posts