Home Directory Plugins Cloud check_aws_ec2_backup

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_aws_ec2_backup

Rating
0 votes
Favoured:
0
Current Version
0.1.0
Last Release Date
2017-04-10
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
MIT
Hits
6669
Files:
FileDescription
check_aws_ec2_backup.shcheck_aws_ec2_backup.sh
IAM-policy-example.jsonExample AWS IAM policy document.
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!
Nagios plugin for monitoring AWS EC2 EBS snapshot creation via AWS CLI, written in bash.
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/).