Elasticsearch Cluster Health Monitor (no security)

This template contains the components necessary for checking an Elasticsearch cluster's health.

It is the equivalent of running "GET _cluster/health" in Sense or the Kibana console tool, but instead having SolarWinds SAM gather the metrics for historical and alerting reasons.

Successfully tested against ES v2.x, 5.x, and 6.x clusters using SAM poller servers Powershell 4 on Windows Server 2012 R2 and poller servers running Windows Server 2016.

The ideal way to apply this template is to an Elasticsearch Client node (i.e. a node that can process queries) such as a Kibana Client node. Otherwise apply this to a master node.

This template is a combination of Powershell scripts that poll for data against target Elasticsearch APIs. Execution of the scripts occur from the polling engine.

Requirements:

  • Windows Powershell 4.0 or newer must be installed and working on the SAM poller server.

Pre-requisites for Elasticsearch:

  • Shield or X-Pack security must NOT installed and enabled in the cluster. For those with security enabled see the other SAM template here.

Notes:

  • Last updated 2018.11.26!
  • This template version does NOT have security options.
  •  I'm in the process of getting this going...

    All of the scripts work fine in PowerShell but only 4 out of 6 work in Orion when applied to an ES Cluster member (5.5.6). For the Unassigned Shards and Initializing Shards components or the template, I am getting an error "PowerShell script error. Script does not contain the expected parameters or is improperly formatted. 'Statistic' missing.

    The changes I have made to the imported template so far include setting the preferred polling method to agentless, and to use no credentials.

  • Does anyone know if this still works? If this is executed in PS directly on the Orion node i get the expected output: 

    Statistic: 0
    Message: graylog Cluster Status is green

    However if i try to run this from SAM console i get: 

    Output Result:
    ND Not Defined

    Anyone run into this issue?