Skip to main content

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

Project details


Download files

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

Source Distribution

check_no_scheduled_ec2_events-0.2.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file check_no_scheduled_ec2_events-0.2.1.tar.gz.

File metadata

File hashes

Hashes for check_no_scheduled_ec2_events-0.2.1.tar.gz
Algorithm Hash digest
SHA256 040794ca83453eb153267e3da8cf2863255ddb65010aedd742326f71aee6532e
MD5 5b1bbcc8bb903eb1dea0b3fab96a2df6
BLAKE2b-256 6b39187458421141d503acd4406827cb9927b0e24fa7ca84ac25b47038ef573f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page