Sha256: 9c2e995d0052cba50560abdf8358a14f4555b0eaeb9bebc92f68bf049bafbb6f
Contents?: true
Size: 581 Bytes
Versions: 29
Compression:
Stored size: 581 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 interval = 2 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
29 entries across 29 versions & 1 rubygems