Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in the process of debugging a random spike on a server and in the mean time I would love to be able to just reboot the machine when a certain CPU threshold is met.

The AWS Cloudwatch rule is set up and works beautifully to notify me by email. What I would prefer is to have it take action and just cycle the machine.

share|improve this question

AWS Cloudwatch can send alarms not only through email but through HTTP(S) or Amazon SQS. You could create a script to receive these notification on your EC2 instance or on an external monitoring server and execute server reboot through ssh shudown -r or through EC2 API.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.