Icinga/Nagios check to check budgets in an AWS account
- boto3
# Checkout source
git clone https://github.com/elias5000/check_aws_budgets.git
# Install boto3 Python module
pip install boto3
# Copy check script
cp check_aws_budgets.py /usr/lib/nagios/plugins/check_aws_budgets.py
# Copy director config
cp check_aws_budgets.conf /etc/icinga2/conf.d/check_aws_budgets.conf
Authentication is identical to awscli. Use either instance role EC2 or pod role on K8S with kube2iam (preferred) or ~/.aws/config profile. The check will use the default profile.
usage: check_aws_budgets.py [-h] [--budget BUDGET]
optional arguments:
-h, --help show this help message and exit
--budget BUDGET budget name