Sha256: 5a0e01fece6a043ff9a95c95e679afed3323d661a7a37b3a0123989cec5517db
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
class Riemann::Babbler::Twcli < Riemann::Babbler def init plugin.set_default(:service, 'twcli') plugin.set_default(:cmd, "/usr/sbin/tw_cli /$(/usr/sbin/tw_cli show | grep ^c | cut -f1 -d' ') show | egrep '^[upb]' | grep -v ' OK ' | wc -l") plugin.states.set_default(:critical, 1) plugin.set_default(:interval, 300) end def run_plugin File.exists? '/usr/sbin/tw_cli' end def collect { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "Hardware raid tw_cli status" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riemann-babbler-1.0.7.7 | lib/riemann/babbler/plugins/twcli.rb |