Nagios plugin to check for splitbrains in Elasticsearch clusters.
Go Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
check_elasticsearch_topology
splitbrain.go

README.md

nagios-plugin-elasticsearch-splitbrain

Nagios plugin to check for splitbrains in Elasticsearch clusters.

How it works

The check is pretty simple - it spawns a goroutine for each node in the cluster, uses NRPE to retrieve the node's view of its own cluster topology (including who is master), and then collates the information. It returns OK if all the nodes have the same master, CRITICAL if there's more than one master detected, and UNKNOWN otherwise.

Requirements

Configuration

This check has two parts - check_elasticsearch_splitbrain and check_elasticsearch_topology. The latter is an info-only check (always returns OK) and is invoked by check_elasticsearch_splitbrain on each host passed via the -nodes argument.