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

Version Path
kurchatov-0.0.5.pre5 examples/la.rb
kurchatov-0.0.5.pre4 examples/la.rb
kurchatov-0.0.5.pre2 examples/la.rb
kurchatov-0.0.5.pre1 examples/la.rb
kurchatov-0.0.4 examples/la.rb
kurchatov-0.0.4d examples/la.rb
kurchatov-0.0.4c examples/la.rb
kurchatov-0.0.4b examples/la.rb
kurchatov-0.0.3 examples/la.rb
kurchatov-0.0.3b examples/la.rb
kurchatov-0.0.3a examples/la.rb