From bed10ed78e8dfb6d3e5e4ff278257f1f038981bc Mon Sep 17 00:00:00 2001 From: Tom Sommer Date: Mon, 2 Jan 2017 11:10:15 +0100 Subject: [PATCH] Remove ?all=true to stats argument This parameter is invalid in ES 5.x --- check_elasticsearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_elasticsearch b/check_elasticsearch index a1d39a2..83c22c3 100755 --- a/check_elasticsearch +++ b/check_elasticsearch @@ -148,7 +148,7 @@ class ElasticSearchCheck(NagiosCheck): # Details like the number of get, search, and indexing # operations come from here. es_stats = get_json(r'http://%s:%d/%s_nodes/_local/' - 'stats?all=true' % (host, port, prefix)) + 'stats' % (host, port, prefix)) myid = es_stats['nodes'].keys()[0]