Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_aws_ec2_backup
0.1.0
2017-04-10
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
MIT
6549
File | Description |
---|---|
check_aws_ec2_backup.sh | check_aws_ec2_backup.sh |
IAM-policy-example.json | Example AWS IAM policy document. |
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!
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/).
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
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
-v, --volume-id
-p, --profile
-w, --warning
-c, --critical
-a, --aws-cli-path
-V, --version output version
-h, --help output help information
Dependencies:
* bash
* AWS CLI (https://aws.amazon.com/cli/).
Reviews (0)
Be the first to review this listing!