Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Nagios-style check if the current EC2 instance has any scheduled events

Project Description

A Nagios-style script that will check if the Amazon EC2 instance it is running on has any events scheduled, like a system reboot.

Exit code 2 if any events are scheduled, 0 otherwise. Useful in combination with Nagios and/or NRPE.

Usage:
check_no_scheduled_ec2_events

No options are given. The script assumes it is running in an EC2 instance, and will grab the current instance id from the instance metadata and AWS credentials from the current environment.

Changelog:

0.2.1 - Handle events being None in boto InstanceStatus

0.2.0 - Handle case where a “completed” scheduled event still shows up in API

0.1.1 - Initial public release

Release History

Release History

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
check_no_scheduled_ec2_events-0.2.1.tar.gz (2.2 kB) Copy SHA256 Checksum SHA256 Source Aug 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting