Sha256: 43a6bab76263829972bcccd28dc275d20b352588c84d1ccf422c4019d7baf79a

Contents?: true

Size: 485 Bytes

Versions: 39

Compression:

Stored size: 485 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

39 entries across 39 versions & 1 rubygems

Version Path
riemann-babbler-1.4.0 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.6 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.9 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.8 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.7 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.6 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.5 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.4 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.3 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.2 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.1 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.3.0 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.2.9 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.2.8 lib/riemann/babbler/plugins/exim4.rb
riemann-babbler-1.2.7 lib/riemann/babbler/plugins/exim4.rb