Sha256: 0b1af8994308c8fa60dc156903bc5d965a2cf82d680dbc17fb0c565a138dfd30
Contents?: true
Size: 522 Bytes
Versions: 18
Compression:
Stored size: 522 Bytes
Contents
always_start true interval 60 default[:cpu] = 1 default[:cpu] = ohai[:cpu][:total] unless ohai[:cpu][:total].to_i == 0 collect :os => "linux" do event( :metric => File.read('/proc/loadavg').scan(/[\d\.]+/)[0].to_f, :desc => 'LA averaged over 1 minute', :service => 'la la_1', :warning => plugin.warning || plugin.cpu * 2, :critical => plugin.critical || plugin.cpu * 4, :opentsdb_service => "sys.la.one_min", :opentsdb_tags => {"host" => ohai[:fqdn]} ) end
Version data entries
18 entries across 18 versions & 1 rubygems