GithubHelp home page GithubHelp logo

tr4sk / check-es Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17 KB

Nagios check for Elasticsearch; should work with any monitoring tools that support the nagios NRPE check "API".

Python 100.00%

check-es's Introduction

check-es

Nagios check for Elasticsearch; should work with any monitoring tools that support the nagios NRPE check "API". I have tested it and it works fine with ZenOSS.

License

GPLv3

Author

Features

  • Check the cluster "color" status; red, yellow.
  • Check how many nodes are in the cluster.
  • Check if a node is up at all (if it tries to connect and fails it throws back proper error).
  • Check if nodes are initializing.
  • Check data nodes.
  • Supports boolean operators.

Installation

  • python setup.py install or pip install check-es

Switches

  • check-es --help for a complete list of switches.
  • -x is the status to check; supported values are: status, initializing_shards, number_of_data_nodes, number_of_nodes, heap_used_percent.
  • -w is the warning value.
  • -c is the critical value.
  • -C is the comparison type such as <=, <, >, >=, ==, !=.
  • -a is the host to connect to. Default is localhost.
  • -p is the HTTP port to connect to. Default is 9200.

Examples

  • check-es -x status -w yellow -c red -C '==' thrown a warning or critical alert if the cluster status is red or yellow.
  • check-es -x number_of_nodes -w 2 -c 2 -C '<=' throws a critical alert if the amount of nodes is less than or equal to two.

Contact

check-es's People

Contributors

nopejpg avatar untoldone avatar

Watchers

 avatar  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.