Skip to main content

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

Metadata

Release files for check_no_scheduled_ec2_events 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for check_no_scheduled_ec2_events 0.2.1
File Size Uploaded
check_no_scheduled_ec2_events-0.2.1.tar.gz 2.2 kB Details

Release files / check_no_scheduled_ec2_events-0.2.1.tar.gz

Download URL check_no_scheduled_ec2_events-0.2.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
040794ca83453eb153267e3da8cf2863255ddb65010aedd742326f71aee6532e
BLAKE2b-256 checksum
How to use checksums
6b39187458421141d503acd4406827cb9927b0e24fa7ca84ac25b47038ef573f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page