lib/riemann/babbler/plugins/dummy.rb in riemann-babbler-0.9.8 vs lib/riemann/babbler/plugins/dummy.rb in riemann-babbler-0.9.9
- old
+ new
@@ -1,12 +1,11 @@
class Riemann::Babbler::Dummy < Riemann::Babbler
def collect
- if tcp_port_aviable?(configatron.riemann.host, configatron.riemann.port)
- logger.error "Riemann state 'ok' host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
- []
+ if tcp_port_aviable?(riemann.host, riemann.port)
+ logger.unknown "Riemann state 'ok' host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
else
- logger.error "Can't access to riemann host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
+ logger.fatal "Can't access to riemann host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
end
Array.new
end
end