Sha256: b71a9e97c7d3e79639367cd960a67563ba3033168689e6ac0b2dec385a67ca02

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

class Riemann::Babbler::Dummy < Riemann::Babbler

  def collect
    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.fatal "Can't access to riemann host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp" 
    end
    Array.new
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
riemann-babbler-0.9.9.2 lib/riemann/babbler/plugins/dummy.rb
riemann-babbler-0.9.9.1 lib/riemann/babbler/plugins/dummy.rb
riemann-babbler-0.9.9 lib/riemann/babbler/plugins/dummy.rb