Sha256: 33f97024a115a4b745b38a5d77cef75e4b85558ebf1a7c6dad744b05b6d9ab4e

Contents?: true

Size: 502 Bytes

Versions: 51

Compression:

Stored size: 502 Bytes

Contents

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

  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

51 entries across 51 versions & 1 rubygems

Version Path
riemann-babbler-2.8.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.8.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.8.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.8.2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.8.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.8.0 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.6.0 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.9 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.8 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.6 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.5.0 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.1.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.1.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-2.1.3.2 lib/riemann/babbler/plugins/exim4.rb