Skip to content

CLI tool to support Nagios checks based on AWS Cloudwatch metrics

Notifications You must be signed in to change notification settings

jddcarreira/aws-nagios-checks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Nagios Checks

Nagios checks based on AWS Cloudwatch metrics

Installation

pip install git+https://github.com/johnnybus/aws-nagios-checks

Usage

AWS Nagios Check
Nagios checks based on AWS Cloudwatch metrics

Usage:
  aws-nagios-check [--aws-profile=<profile>] [--aws-region=<region>] --metric=<metric> --resource=<resource> --warn=<warn> --crit=<critical>

  --aws-profile=<profile>                           AWS Profile
  --metric=<metric>                                 Metric to be feteched
  --resource=<resource>                             Resource get the data
  --warn=<warn>                                     Warning threeshold
  --crit=<critical>                                 Critical threeshold

Options:
  -h --help                                         Show this screen.

Metrics Prefix:
    - AELB_                                         ApplicationELB Metrics
    - RDSCluster_[Reader|Writer]                    RDS Cluster Metrics

Metric Example:
    [Metric Prefix]_[CW Metric Name]
    RDSCluster_ReaderCPUUtilization

Example

Run a check

aws-nagios-check --aws-profile=default1 --aws-region=eu-west-1 --metric=RDSCluster_WriterCPUUtilization --resource=myclust --warn=90 --crit=95

Check return code

echo $?

Available Metrics

Application ELB

  • AELB_ActiveConnectionCount
  • AELB_HTTPCode_Target_2XX_Count
  • AELB_HTTPCode_Target_3XX_Count
  • AELB_HTTPCode_Target_5XX_Count
  • AELB_HTTPCode_ELB_2XX_Count
  • AELB_HTTPCode_ELB_3XX_Count
  • AELB_HTTPCode_ELB_5XX_Count
  • AELB_TargetResponseTime
  • AELB_RequestCount
  • AELB_ClientTLSNegotiationError
  • AELB_TG_RequestCountPerTarget

RDS

  • RDSCluster_[Writer|Reader]CommitLatency
  • RDSCluster_[Writer|Reader]DatabaseConnections
  • RDSCluster_[Writer|Reader]DDLThroughput
  • RDSCluster_[Writer|Reader]NetworkReceiveThroughput
  • RDSCluster_[Writer|Reader]BlockedTransactions
  • RDSCluster_[Writer|Reader]SelectThroughput
  • RDSCluster_[Writer|Reader]InsertLatency
  • RDSCluster_[Writer|Reader]UpdateThroughput
  • RDSCluster_[Writer|Reader]NetworkTransmitThroughput
  • RDSCluster_[Writer|Reader]DeleteThroughput
  • RDSCluster_[Writer|Reader]DMLLatency
  • RDSCluster_[Writer|Reader]CommitThroughput
  • RDSCluster_[Writer|Reader]DeleteLatency
  • RDSCluster_[Writer|Reader]DMLThroughput
  • RDSCluster_[Writer|Reader]LoginFailures
  • RDSCluster_[Writer|Reader]SelectLatency
  • RDSCluster_[Writer|Reader]ActiveTransactions
  • RDSCluster_[Writer|Reader]BufferCacheHitRatio
  • RDSCluster_[Writer|Reader]AuroraBinlogReplicaLag
  • RDSCluster_[Writer|Reader]BinLogDiskUsage
  • RDSCluster_[Writer|Reader]ResultSetCacheHitRatio

About

CLI tool to support Nagios checks based on AWS Cloudwatch metrics

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages