bin/metrics-redis-llen.rb in sensu-plugins-redis-2.4.0 vs bin/metrics-redis-llen.rb in sensu-plugins-redis-3.0.0
- old
+ new
@@ -32,9 +32,9 @@
redis_keys = config[:key].split(',')
redis_keys.each do |key|
output "#{config[:scheme]}.#{key}.items", redis.llen(key)
end
ok
- rescue
+ rescue StandardError
send(config[:conn_failure_status], "Could not connect to Redis server on #{redis_endpoint}")
end
end