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


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
Project Stats
Rating
0 (0)
Favorites
0
Views
6,597