riemann-babbler 1.0.7.3 → 1.0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ class Riemann::Babbler::Twcli < Riemann::Babbler
2
+
3
+ def init
4
+ plugin.set_default(:service, 'tw_cli raid status')
5
+ plugin.set_default(:cmd, "tw_cli /$(tw_cli show | grep ^c | cut -f1 -d' ') show | egrep '^[upb]' | grep -v ' OK ' | wc -l")
6
+ plugin.states.set_default(:critical, 1)
7
+ plugin.set_default(:interval, 300)
8
+ end
9
+
10
+ def run
11
+ File.exists? '/usr/sbin/tw_cli'
12
+ end
13
+
14
+ def collect
15
+ {
16
+ :service => plugin.service,
17
+ :metric => shell(plugin.cmd).to_i,
18
+ :description => "Hardware raid status"
19
+ }
20
+ end
21
+
22
+ end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '1.0.7.3'
3
+ VERSION = '1.0.7.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7.3
4
+ version: 1.0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-17 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client
@@ -172,6 +172,7 @@ files:
172
172
  - lib/riemann/babbler/plugins/netstat.rb
173
173
  - lib/riemann/babbler/plugins/nginx.rb
174
174
  - lib/riemann/babbler/plugins/runit.rb
175
+ - lib/riemann/babbler/plugins/twcli.rb
175
176
  - lib/riemann/babbler/support/deep_merge.rb
176
177
  - lib/riemann/babbler/support/monkey_patches.rb
177
178
  - lib/riemann/babbler/support/plugin_helpers.rb