Cloud

check_aws_ec2_backup

Description:

Nagios plugin for monitoring AWS EC2 EBS snapshot creation via AWS CLI, written in bash.

Current Version

0.1.0

Last Release Date

2017-04-10

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x

Owner

License

MIT


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Install: Install the AWS CLI and configure the credentials for the Nagios service's user. See `IAM-policy-example.json` for an example IAM policy document for the Nagios user's AWS credentials. Usage: ./check_aws_ec2_backup -r -v [options] Examples: # exit WARNING the if most recent snapshot older than 24hrs 15mins, CRITICAL if older than 48hrs 15mins ./check_aws_ec2_backup -r eu-west-1 -v vol-123abcd0 # exit WARNING the if most recent snapshot older than 24hrs, CRITICAL if older than 1 week ./check_aws_ec2_backup -r eu-west-1 -v vol-123abcd0 -c 604800 # exit WARNING the if most recent snapshot older than 1 week, CRITICAL if older than 2 weeks ./check_aws_ec2_backup -r eu-west-1 -v vol-123abcd0 -w 604800 -c 1209600 # set an AWS CLI config profile ./check_aws_ec2_backup -r eu-west-1 -v vol-123abcd0 -p foo-profile # set full path to AWS CLI ./check_aws_ec2_backup -r eu-west-1 -v vol-123abcd0 -a /usr/local/bin/aws Options: -r, --region AWS region to use -v, --volume-id AWS volume ID to check -p, --profile AWS CLI config profile to use -w, --warning snapshot age in seconds to treat as WARNING -c, --critical snapshot age in seconds to treat as CRITICAL -a, --aws-cli-path set path to AWS CLI, if not on $PATH -V, --version output version -h, --help output help information Dependencies: * bash * AWS CLI (https://aws.amazon.com/cli/).
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
6,607