https://github.com/gyselroth/monitoring-plugin-elasticsearch-cluster
Monitor elasticsearch cluster health
https://github.com/gyselroth/monitoring-plugin-elasticsearch-cluster
elasticsearch-cluster monitoring-plugins
Last synced: 11 months ago
JSON representation
Monitor elasticsearch cluster health
- Host: GitHub
- URL: https://github.com/gyselroth/monitoring-plugin-elasticsearch-cluster
- Owner: gyselroth
- License: mit
- Created: 2017-04-11T11:14:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T11:34:50.000Z (almost 9 years ago)
- Last Synced: 2025-02-24T15:33:19.473Z (about 1 year ago)
- Topics: elasticsearch-cluster, monitoring-plugins
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monitoring Plugin: Elasticsearch cluster
### Description
Monitor the status of your elasticsearch cluster. This script does monitor the value "status" from "ES_API/_cluster/health" if not specified anything else.
If -a is set to a specific attribute you can monitor a number against the specified threshold (-w and -c). Possible attributes can be taken from
ES_API/_cluster/health (curl localhost:9200/_cluster/health?pretty), they are not documented here since they are different between the different versions of elasticsearch.
### Usage
-h Shows this message
-H [Default: localhost] Elasticsearch cluster node
-p [Default: 9200] Port
-s [Default: ] SSL
-a [Default: status] Check attribute
-w [Default: ] Warning (Only required if -a is different than the default "status")
-c [Default: ] Critical (Only required if -a is different than the default "status")
### Examples
./check_elasticsearch_cluster -H localhost\
elasticsearch cluster status is green
./check_elasticsearch_cluster -H localhost -a active_primary_shards -w200 -c300\
elasticsearch cluster health active_primary_shards=181 is
./check_elasticsearch_cluster -H localhost -a unassigned_shards -w10 -c20\
elasticsearch cluster health unassigned_shards=0 is O
### Install
Copy check_elasticsearch_cluster to your plugin folder and create a service/exec in your monitoring engine.