Sha256: 0bd7947932a6b91c0841cbcd461f59c81a2a083493a579c9859b27b2f8ccc55d

Contents?: true

Size: 422 Bytes

Versions: 14

Compression:

Stored size: 422 Bytes

Contents

interval 180
always_start true

default[:cmd] = "/usr/sbin/tw_cli show | awk '/^c/{print $1}' | xargs -rI{} /usr/sbin/tw_cli /{} show | awk '/^[upb]/&&!/[ \t](OK|VERIFYING|VERIFY-PAUSED)/' |wc -l"

run_if do
  File.exists? '/usr/sbin/tw_cli'
end

collect do
  event(
    :service     => 'twcli',
    :metric      => shell(plugin.cmd).to_i,
    :description => 'Hardware raid tw_cli status',
    :critical    => 1 
  )
end

Version data entries

14 entries across 14 versions & 1 rubygems

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