Sha256: 50dbf2d8cd7fa75b8772955b4a9c6f30c2bfaef399a712cc39b7ad7d7acf227e

Contents?: true

Size: 486 Bytes

Versions: 42

Compression:

Stored size: 486 Bytes

Contents

class Riemann::Babbler::Exim4 < Riemann::Babbler

  def init
    plugin.set_default(:service, 'exim4')
    plugin.set_default(:cmd, '/usr/sbin/exim -bpc')
    plugin.set_default(:interval, 60)
    plugin.states.set_default(:warning, 5)
    plugin.states.set_default(:critical, 20)
  end

  def run_plugin
    File.exists? '/usr/sbin/exim'
  end

  def collect
    { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "Exim4: count frozen mails" }
  end

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
riemann-babbler-1.0.7.9 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.8 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.1.0pre2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.6 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.6 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.0.4 lib/riemann/babbler/plugins/exim4.rb