bin/check-es-heap.rb in sensu-plugins-elasticsearch-0.5.3 vs bin/check-es-heap.rb in sensu-plugins-elasticsearch-1.0.0

- old
+ new

@@ -112,9 +112,11 @@ JSON.parse(r.get) rescue Errno::ECONNREFUSED warning 'Connection refused' rescue RestClient::RequestTimeout warning 'Connection timed out' + rescue RestClient::ServiceUnavailable + warning 'Service is unavailable' rescue JSON::ParserError warning 'Elasticsearch API returned invalid JSON' end def acquire_heap_data(return_max = false)