bin/check-redis-ping.rb in sensu-plugins-redis-2.4.0 vs bin/check-redis-ping.rb in sensu-plugins-redis-3.0.0

- old
+ new

@@ -1,7 +1,7 @@ #! /usr/bin/env ruby -# encoding: UTF-8 + # <script name> # # DESCRIPTION: # Runs Redis ping command to see if Redis is alive # @@ -38,9 +38,9 @@ if Redis.new(default_redis_options).ping == 'PONG' ok 'Redis is alive' else critical 'Redis did not respond to the ping command' end - rescue + rescue StandardError send(config[:conn_failure_status], "Could not connect to Redis server on #{redis_endpoint}") end end