Sha256: 5008e6c997606ff76a49dd6a380dbbc2718a65a9bc9ae9fd6676b89089d52a3f
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
class Riemann::Babbler::Twcli < Riemann::Babbler def init plugin.set_default(:service, 'tw_cli raid status') plugin.set_default(:cmd, "tw_cli /$(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 File.exists? '/usr/sbin/tw_cli' end def collect { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "Hardware raid status" } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riemann-babbler-1.0.7.5 | lib/riemann/babbler/plugins/twcli.rb |
riemann-babbler-1.0.7.4 | lib/riemann/babbler/plugins/twcli.rb |