Sha256: e8fbfbe921789d96ca7a82c341d97856416ee4313c5e8773bb6aad220d7e6650

Contents?: true

Size: 288 Bytes

Versions: 65

Compression:

Stored size: 288 Bytes

Contents

interval 180
always_start true

default[:cmd] = 'megacli -AdpAllInfo -aAll -NoLog | awk -F": " \'/Virtual Drives/ { getline; print $2; }\''

run_if do
  File.exists? '/usr/bin/megacli'
end

collect do
  event(:metric => shell(settings.cmd).to_i > 0, :description => 'MegaCli status')
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
kurchatov-0.0.7 examples/megacli.rb
kurchatov-0.0.7.pre.3 examples/megacli.rb
kurchatov-0.0.7.pre.2 examples/megacli.rb
kurchatov-0.0.7.pre.1 examples/megacli.rb
kurchatov-0.0.6 examples/megacli.rb
kurchatov-0.0.6.pre.5 examples/megacli.rb
kurchatov-0.0.6.pre.4 examples/megacli.rb
kurchatov-0.0.6.pre.3 examples/megacli.rb
kurchatov-0.0.6.pre.2 examples/megacli.rb
kurchatov-0.0.6.pre.1 examples/megacli.rb
kurchatov-0.0.5 examples/megacli.rb
kurchatov-0.0.5.pre5 examples/megacli.rb
kurchatov-0.0.5.pre4 examples/megacli.rb
kurchatov-0.0.5.pre2 examples/megacli.rb
kurchatov-0.0.5.pre1 examples/megacli.rb
kurchatov-0.0.4 examples/megacli.rb
kurchatov-0.0.4d examples/megacli.rb
kurchatov-0.0.4c examples/megacli.rb
kurchatov-0.0.4b examples/megacli.rb
kurchatov-0.0.3 examples/megacli.rb