riemann-babbler 1.0.7.5 → 1.0.7.7

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.
data/config.yml CHANGED
@@ -57,7 +57,7 @@ plugins:
57
57
  service: megacli
58
58
 
59
59
  twcli:
60
- service: tw_cli
60
+ interval: 300
61
61
 
62
62
  nginx:
63
63
  service: nginx
@@ -1,21 +1,21 @@
1
1
  class Riemann::Babbler::Twcli < Riemann::Babbler
2
2
 
3
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")
4
+ plugin.set_default(:service, 'twcli')
5
+ plugin.set_default(:cmd, "/usr/sbin/tw_cli /$(/usr/sbin/tw_cli show | grep ^c | cut -f1 -d' ') show | egrep '^[upb]' | grep -v ' OK ' | wc -l")
6
6
  plugin.states.set_default(:critical, 1)
7
7
  plugin.set_default(:interval, 300)
8
8
  end
9
9
 
10
- def run
10
+ def run_plugin
11
11
  File.exists? '/usr/sbin/tw_cli'
12
12
  end
13
13
 
14
14
  def collect
15
- {
15
+ {
16
16
  :service => plugin.service,
17
17
  :metric => shell(plugin.cmd).to_i,
18
- :description => "Hardware raid status"
18
+ :description => "Hardware raid tw_cli status"
19
19
  }
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '1.0.7.5'
3
+ VERSION = '1.0.7.7'
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.5
4
+ version: 1.0.7.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: