Sha256: b9ad9fdee93e2075e92825b24371740fa5a84a77e0aa38657c2fed30fec316db
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
always_start true interval 60 default[:cpu] = ohai[:cpu][:real] 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.cpu, :critical => plugin.cpu * 2 ) end collect :os => 'darwin' do event( :metric => shell('uptime | cut -d":" -f4- | sed s/,//g').to_f, :desc => 'LA averaged over 1 minute', :service => 'la la_1', :warning => plugin.cpu, :critical => plugin.cpu * 2 ) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kurchatov-0.0.6.pre.2 | examples/la.rb |
kurchatov-0.0.6.pre.1 | examples/la.rb |
kurchatov-0.0.5 | examples/la.rb |