riemann-babbler 1.0.4 → 1.0.5
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/lib/riemann/babbler/plugins/cuboxtemp.rb +20 -0
- data/lib/riemann/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,20 @@
|
|
1
|
+
class Riemann::Babbler::Cuboxtemp < Riemann::Babbler
|
2
|
+
|
3
|
+
def init
|
4
|
+
plugin.set_default(:service, 'cuboxtemp')
|
5
|
+
plugin.set_default(:interval, 60)
|
6
|
+
plugin.set_default(:cmd, 'sensors | grep "T-junction" | awk "{print $2}"')
|
7
|
+
plugin.states.set_default(:warning, 90)
|
8
|
+
plugin.states.set_default(:critical, 100)
|
9
|
+
end
|
10
|
+
|
11
|
+
def run_plugin
|
12
|
+
File.exists? '/usr/bin/sensors'
|
13
|
+
end
|
14
|
+
|
15
|
+
def collect
|
16
|
+
{ :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "Cubox temperature" }
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
data/lib/riemann/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.5
|
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-
|
12
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riemann-client
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/riemann/babbler/plugins/cpu.rb
|
163
163
|
- lib/riemann/babbler/plugins/cpufan.rb
|
164
164
|
- lib/riemann/babbler/plugins/cputemp.rb
|
165
|
+
- lib/riemann/babbler/plugins/cuboxtemp.rb
|
165
166
|
- lib/riemann/babbler/plugins/disk.rb
|
166
167
|
- lib/riemann/babbler/plugins/dummy.rb
|
167
168
|
- lib/riemann/babbler/plugins/exim4.rb
|