Coder Social home page Coder Social logo

check_elasticache's Introduction

#check_elasticache.py

##Overview

This Nagios plugin allows you to check the status of an ElastiCache instance.

Instead of connecting directly to the instance, it will query AWS CloudWatch for some metrics.

##Setup

Install it in your Nagios plugins directory, create a Nagios command and start adding your service checks.

###Setup requirements

This script requires python 2.7, the Boto library and the following IAM permissions:

  • elasticache:DescribeCacheClusters
  • cloudwatch:GetMetricStatistics

##Usage

Some usage examples:

List all available ElastiCache clusters in us-east-1:

check_elasticache.py --region us-east-1 -l

Print all available information about the ElastiCache cluster 'cluster1'

check_elasticache.py --region us-east-1 -i cluster1 -p

Check the current status of 'cluster1'. Returns CRITICAL if status is not 'available'

check_elasticache.py --region us-east-1 -i cluster1 -m status

Check the current cpu of 'cluster1'. Will return WARNING or CRITICAL if the result is over the specified thresholds.

check_elasticache.py --region us-east-1 -i cluster1 -m cpu -w 90,85,80 -c 98,95,90

Check the current cpu of 'cluster1' but do not calculate the real thresholds when using redis

check_elasticache.py --region us-east-1 -i cluster1 -m cpu -w 90,85,80 -c 98,95,90 --no-threshold-calc

Check the current memory usage of 'cluster1'. Will return WARNING or CRITICAL if the result is over the specified thresholds.

check_elasticache.py --region us-east-1 -i cluster1 -m memory -w 10 -c 5

If 'cluster1' is memcache, it may have multiple nodes. Check memory from the second node.

check_elasticache.py --region us-east-1 -i cluster1 -m memory -w 10 -c 5 --node 2

check_elasticache's People

Contributors

phollome avatar

Watchers

James Cloos avatar Jarrod Jackson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.