Home Directory Plugins Clustering and High-Availability check_elasticsearch_cluster_shard_balance.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me

Directory Tree

check_elasticsearch_cluster_shard_balance.pl (Advanced Nagios Plugins Collection)

0 votes
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks max shard imbalance in number of shards between Elasticsearch nodes in a cluster
Part of the Advanced Nagios Plugins Collection

Download it here:



Nagios Plugin to check max shard imbalance in number of shards between Elasticsearch nodes in a cluster

In order to account for client nodes like co-located LogStash this code ignores nodes with 0 shards (see check_elasticsearch_node_shards.pl to cover that which automatically alerts warning on on 0 shard

Tested on Elasticsearch 1.2.1, 1.4.0, 1.4.4

usage: check_elasticsearch_cluster_shard_balance.pl [ options ]

-H --host ElasticSearch host ($ELASTICSEARCH_HOST, $HOST)
-P --port ElasticSearch port ($ELASTICSEARCH_PORT, $PORT, default: 9200)
-w --warning Warning threshold or ran:ge (inclusive, default: 30)
-c --critical Critical threshold or ran:ge (inclusive, default: 200)
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode (-v, -vv, -vvv ...)
-h --help Print description and usage options
-V --version Print version and exit