bin/check-redis-info.rb in sensu-plugins-redis-2.4.0 vs bin/check-redis-info.rb in sensu-plugins-redis-3.0.0
- old
+ new
@@ -43,9 +43,9 @@
if redis.info.fetch(config[:redis_info_key].to_s) == config[:redis_info_value].to_s
ok "Redis #{config[:redis_info_key]} is #{config[:redis_info_value]}"
else
critical "Redis #{config[:redis_info_key]} is #{redis.info.fetch(config[:redis_info_key].to_s)}!"
end
- rescue
+ rescue StandardError
send(config[:conn_failure_status], "Could not connect to Redis server on #{redis_endpoint}")
end
end