Monitoring plugin check_es_system 1.5.1 released, fixes bug in Elasticsearch cluster health lookup

Written by - 0 comments

Published on - Listed in Elasticsearch Monitoring ELK


A new version of check_es_system, a plugin to monitor ElasticSearch nodes or clusters, is available.

The new version 1.5.1 fixes a bug in the "status" check type. It now catches when the cluster health url would not be reachable or would show no output.

Without the bugfix, the plugin would silently fail but would still return an exit code 0 (resulting in OK in the monitoring application):

# /usr/lib/nagios/plugins/check_es_system.sh -H myESnode -u monitoring -p secret -t status
parse error: type 'object' has no elements to extract (arg 2)
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file
json read error: line 2 column 0: '[' or '{' expected near end of file

This was caused when the cluster health page (/cluster/health) returned no data. In this particular case it was a full cluster failure leading to this.

With 1.5.1 this now works correctly:

# /usr/lib/nagios/plugins/check_es_system.sh -H myESnode -u monitoring -p secret -t status
ES SYSTEM CRITICAL - unable to get cluster health information



Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.