Sha256: d5fcddefd0126d692bf01fcf8b08f7424962bb3e1cd03404cc63ce0fa1fc5380
Contents?: true
Size: 578 Bytes
Versions: 11
Compression:
Stored size: 578 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
11 entries across 11 versions & 1 rubygems