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 +1 -1
- data/lib/riemann/babbler/plugins/twcli.rb +5 -5
- data/lib/riemann/version.rb +1 -1
- metadata +1 -1
data/config.yml
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
class Riemann::Babbler::Twcli < Riemann::Babbler
|
2
2
|
|
3
3
|
def init
|
4
|
-
plugin.set_default(:service, '
|
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
|
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
|
|
data/lib/riemann/version.rb
CHANGED