Home Directory Plugins Clustering and High-Availability check_elasticsearch_node_shards.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

Login

Remember Me

Directory Tree

check_elasticsearch_node_shards.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
5811
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Checks the number of shards assigned to a given Elasticsearch node in a cluster
Part of the Advanced Nagios Plugins Collection

Download it here:

https://github.com/harisekhon/nagios-plugins

check_elasticsearch_node_shards.pl

Nagios Plugin to check the number of shards assigned to a given Elasticsearch node in a cluster

Should specify an Elasticsearch node name rather than a hostname/FQDN/IP (see --list-nodes), as sometimes hosts may have more than once instance or client nodes like logstash--- which
also share the same hostname/FQDN and will result in multiple ambiguous matches, resulting in an UNKNOWN error condition to flag for user to correct this and be more specific.

Tested on Elasticsearch 1.4.0, 1.4.4

usage: check_elasticsearch_node_shards.pl [ options ]

-H --host ElasticSearch host ($ELASTICSEARCH_HOST, $HOST)
-P --port ElasticSearch port ($ELASTICSEARCH_PORT, $PORT, default: 9200)
-N --node Elasticsearch node ($ELASTICSEARCH_NODE)
--list-nodes List Elasticsearch nodes
-w --warning Warning threshold or ran:ge (inclusive, default: 1:)
-c --critical Critical threshold or ran:ge (inclusive, default: 10000)
-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