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.4.7 examples/megacli.rb
kurchatov-0.4.6 examples/megacli.rb
kurchatov-0.4.5 examples/megacli.rb
kurchatov-0.4.4 examples/megacli.rb
kurchatov-0.4.3 examples/megacli.rb
kurchatov-0.4.2 examples/megacli.rb
kurchatov-0.4.1 examples/megacli.rb
kurchatov-0.3.8 examples/megacli.rb
kurchatov-0.3.7 examples/megacli.rb
kurchatov-0.3.6 examples/megacli.rb
kurchatov-0.3.5 examples/megacli.rb
kurchatov-0.3.4 examples/megacli.rb
kurchatov-0.3.3 examples/megacli.rb
kurchatov-0.3.2 examples/megacli.rb
kurchatov-0.3.1 examples/megacli.rb
kurchatov-0.3.0 examples/megacli.rb
kurchatov-0.2.9 examples/megacli.rb
kurchatov-0.2.8 examples/megacli.rb
kurchatov-0.2.7 examples/megacli.rb
kurchatov-0.2.6 examples/megacli.rb