Sagar Jadhav
Sagar Jadhav

Reputation: 521

Is there a way to perform test against AWS "StatusCheckFailed_System" alarm

I want to configure a aws cloudwatch alarm for "StatusCheckFailed_System". I am purposely looking for this whenever underlying hardware failure detects, I can recover the instance without having a downtime.

There are MS SQL database servers which are standalone and not a part of autoscaling group. But obvious AWS wont force to go down their underlying hardware so by any chance I can test StatusCheckFailed_System? Kindly advise.

Regards, Sagar

Upvotes: 1

Views: 875

Answers (1)

pratikvasa
pratikvasa

Reputation: 2045

Oh yes.. I got it..

Can you try this

aws cloudwatch set-alarm-state \
--alarm-name "ec2_system_alarm" \
 --state-value ALARM \ --state-reason
 "simulate an ec2 system failure"

Got reference from here

But this will just change the alarm state and not actually change the check of your ec2 instance.

Upvotes: 1

Related Questions