Coder Social home page Coder Social logo

fessyfoo / nagios-elasticsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opentable/nagios-elasticsearch

0.0 1.0 0.0 106 KB

A few Nagios check commands for an ElasticSearch cluster

License: MIT License

Makefile 0.55% Python 99.45%

nagios-elasticsearch's Introduction

#Nagios-ElasticSearch

A few simple scripts for checking the state of your [ElasticSearch] cluster using Nagios the endpoints of ElasticSearch

[![Build Status](https://secure.travis-ci.org/opentable/nagios-elasticsearch.png)](https://secure.travis-ci.org/opentable/nagios-elasticsearch.png)

##How they work

These plugins work by submitting API requests to a local or remote ElasticSearch server via the [cluster-health] and [node stats] endpoints

###Check Nodes in Cluster

This can be used to specify the nodes that are expected in the cluster. Currently, the check will return as CRITICAL if there are any unaccounted for nodes

` Usage: check_es_nodes.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit -v, --verbose -E NODES_IN_CLUSTER, --expected_nodes_in_cluster=NODES_IN_CLUSTER This is the expected number of nodes in the cluster -H HOST, --host=HOST The cluster to check -P PORT, --port=PORT The ES port - defaults to 9200 python check_es_nodes.py --host=myescluster.com --expected_nodes_in_cluster=13`

###Check Cluster Health Status

This plugin can be used to get the current cluster health. This will return OK for Green, Warning for Yellow and Critical for Red.

` Usage: check_es_cluster_status.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit -v, --verbose -H HOST, --host=HOST The cluster to check -P PORT, --port=PORT The ES port - defaults to 9200 python check_es_cluster_status.py --host=myescluster.com`

###Check for Unassigned Nodes in Cluster

This plugin can be used to check for unassigned shards in the cluster. This can potentially indicate that a node is missing from the cluster. The alert will currently indicate a CRITICAL error if an unassigned shard is found

` Usage: check_es_unassigned_shards.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit -v, --verbose -H HOST, --host=HOST The cluster to check -P PORT, --port=PORT The ES port - defaults to 9200 python check_es_unassigned_shards.py --host=myescluster.com`

###Check Node JVM Usage

This plugin can be used to ensure that the nodes in the cluster are not approaching, or exceeding, the thresholds that we determine that the JVM needs to run at. Currently, if any of the nodes exceed the critical limt, then the cluster will throw a CRITICAL error. If no nodes exceed the critical threshold but a node exceeds the warning threshold, then the cluster will throw a WARNING.

` Usage: check_es_jvm_usage.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit -v, --verbose -H HOST, --host=HOST The cluster to check -P PORT, --port=PORT The ES port - defaults to 9200 -C CRITICAL_THRESHOLD, --critical_threshold=CRITICAL_THRESHOLD The level at which we throw a CRITICAL alert - defaults to 97% of the JVM setting -W WARNING_THRESHOLD, --warning_threshold=WARNING_THRESHOLD The level at which we throw a WARNING alert - defaults to 85% of the JVM setting python check_es_unassigned_shards.py --host=myescluster.com`

###Installation

###Development

###License This project is licensed under MIT

[cluster-health]: http://www.elasticsearch.org/guide/reference/api/admin-cluster-health.html [node stats]: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html [ElasticSearch]: http://www.elasticsearch.org/

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.