Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
AWS Application Load Balancer unhealthy check
1.0.0
2018-03-06
- Nagios 4.x
7882
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!
Objective
Get metric of AWS ALB UnHealthyHostCount.
Author: Asaf Shabat
Prerequisites
Python3
boto3 extention (using: pip install boto3)
AWS cli installed
AWS Access key, Secret key and Region configured
Usage
./ecs_metric.py [-h] [--targetgroup TARGETGROUP] [--loadbalancer LOADBALANCER] [--period PERIOD] [--statistics STATISTICS]
[--unit UNIT] [--ok_threshold OK_THRESHOLD] [--critical_threshold CRITICAL_THRESHOLD]
Arguments
-h, --help
Show this help message and exit
--targetgroup TARGETGROUP
Each target group is used to route requests to one or more registered targets. For example: targetgroup/target-group-name/numbers&characters
--loadbalancer LOADBALANCER
The load balancer distributes incoming application traffic across multiple targets. For example: app/application-load-balancer/numbers&characters
--period PERIOD
A period is the length of time associated with a specific Amazon CloudWatch statistic.
For example: to specify a period of 5 minutes, use 300 as the period value.
--statistics STATISTICS
Statistics are metric data aggregations over specified periods of time.
For example: Average
--unit UNIT
Each statistic has a unit of measure.
For example: Count
--ok_threshold OK_THRESHOLD
Threshold which reflects the OK status value. (Recommended threshold: 0)
--critical_threshold CRITICAL_THRESHOLD
Threshold which reflects the Critical status value. (Recommended threshold: 0)
Python3
boto3 extention (using: pip install boto3)
AWS cli installed
AWS Access key, Secret key and Region configured
Usage
./ecs_metric.py [-h] [--targetgroup TARGETGROUP] [--loadbalancer LOADBALANCER] [--period PERIOD] [--statistics STATISTICS]
[--unit UNIT] [--ok_threshold OK_THRESHOLD] [--critical_threshold CRITICAL_THRESHOLD]
Arguments
-h, --help
Show this help message and exit
--targetgroup TARGETGROUP
Each target group is used to route requests to one or more registered targets. For example: targetgroup/target-group-name/numbers&characters
--loadbalancer LOADBALANCER
The load balancer distributes incoming application traffic across multiple targets. For example: app/application-load-balancer/numbers&characters
--period PERIOD
A period is the length of time associated with a specific Amazon CloudWatch statistic.
For example: to specify a period of 5 minutes, use 300 as the period value.
--statistics STATISTICS
Statistics are metric data aggregations over specified periods of time.
For example: Average
--unit UNIT
Each statistic has a unit of measure.
For example: Count
--ok_threshold OK_THRESHOLD
Threshold which reflects the OK status value. (Recommended threshold: 0)
--critical_threshold CRITICAL_THRESHOLD
Threshold which reflects the Critical status value. (Recommended threshold: 0)
Reviews (0)
Be the first to review this listing!