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