lib/start.rb in riemann-babbler-0.9.9 vs lib/start.rb in riemann-babbler-0.9.9.1
- old
+ new
@@ -122,9 +122,10 @@
riemann = Riemann::Client.new(
:host => riemann_ip,
:port => config.riemann.port
)
riemann = ( config.riemann.proto == 'tcp' ) ? riemann.tcp : riemann
+ riemann.connect
rescue
logger.fatal "Can't resolv riemann host: #{config.riemann.host}"
sleep 5
retry
end