sensu/sensu-community-plugins — pull request #284 by yacn (2013-09-11 20:19:40+00:00)
Title: Handler to remove Chef nodes terminated in EC2

This handler removes a Chef node if it has been terminated in EC2 by means that do not remove the information from the Chef Server (i.e. knife), such as through the EC2 web console.

NOTE: The implementation for correlating Sensu clients to Chef nodes in EC2 may need to be modified to fit your organization. The current implementation assumes that Sensu clients' names are the same as their instance IDs in EC2. If this is not the case, you can either sub-class this handler and override `ec2_node_exists?` in your own organization-specific handler, or modify this handler to suit your needs.

Requires the following environment variables to be set:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY

Requires the following Rubygems (`gem install $GEM`):
- sensu-plugin
- spice (~> 1.0.6)
- fog