Sha256: c84bc01fb98bc7ecd81b82080d301953981e57120c29e79dc9da554122c7748c

Contents?: true

Size: 417 Bytes

Versions: 51

Compression:

Stored size: 417 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

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.4.7 examples/tw_cli.rb
kurchatov-0.4.6 examples/tw_cli.rb
kurchatov-0.4.5 examples/tw_cli.rb
kurchatov-0.4.4 examples/tw_cli.rb
kurchatov-0.4.3 examples/tw_cli.rb
kurchatov-0.4.2 examples/tw_cli.rb
kurchatov-0.4.1 examples/tw_cli.rb
kurchatov-0.3.8 examples/tw_cli.rb
kurchatov-0.3.7 examples/tw_cli.rb
kurchatov-0.3.6 examples/tw_cli.rb
kurchatov-0.3.5 examples/tw_cli.rb
kurchatov-0.3.4 examples/tw_cli.rb
kurchatov-0.3.3 examples/tw_cli.rb
kurchatov-0.3.2 examples/tw_cli.rb
kurchatov-0.3.1 examples/tw_cli.rb
kurchatov-0.3.0 examples/tw_cli.rb
kurchatov-0.2.9 examples/tw_cli.rb
kurchatov-0.2.8 examples/tw_cli.rb
kurchatov-0.2.7 examples/tw_cli.rb
kurchatov-0.2.6 examples/tw_cli.rb