
Clustering and High-Availability
check_elasticsearch_node_stats.pl (Advanced Nagios Plugins Collection)
Description:
Checks the stats for a given Elasticsearch node
Current Version
Last Release Date
January 4, 2016
Compatible With
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
Owner
Download URL
Project Notes
Part of the Advanced Nagios Plugins Collection
Download it here:
https://github.com/harisekhon/nagios-plugins
check_elasticsearch_node_stats.pl
Nagios Plugin to check the stats for a given Elasticsearch node
- Can fetch one or more given stats (fetches all stats if no specific ones are specified)
- Optional --warning/--critical threshold ranges if given are applied to the first float value found (--key order is preserved for this reason if wnating to return more than one thing at a time but still
have a threshold on one of them, the first one in the --key list)
- Will output stats KB/MB/GB/PB values in brackets in verbose mode for size_in_bytes stats
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.
For a convenient list of all stats one per line use -vv
usage: check_elasticsearch_node_stats.pl [ options ]
-H --host ElasticSearch host ($ELASTICSEARCH_HOST, $HOST)
-P --port ElasticSearch port ($ELASTICSEARCH_PORT, $PORT, default: 9200)
-N --node Elasticsearch node ($ELASTICSEARCH_NODE)
-K --key Stat Key(s) to fetch (eg. indices.docs.count, http.current_open, fs.total.available_in_bytes). Multiple keys may be comma separated. Optional, all stats will be printed if no specific
stat(s) requested
--list-nodes List Elasticsearch nodes
-w --warning Warning threshold or ran:ge (inclusive)
-c --critical Critical threshold or ran:ge (inclusive)
-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
Reviews
(0)
Add a Review
Add a Review
You must be logged in to submit a review.
Thank you for your review!
Your review has been submitted and is pending approval.
Recommend
To:
From:
Thank you for your recommendation!
Your recommendation has been sent.
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
10,796