riemann-babbler 0.9.8 → 0.9.9
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.
@@ -1,11 +1,10 @@
|
|
1
1
|
class Riemann::Babbler::Dummy < Riemann::Babbler
|
2
2
|
|
3
3
|
def collect
|
4
|
-
if tcp_port_aviable?(
|
5
|
-
logger.
|
6
|
-
[]
|
4
|
+
if tcp_port_aviable?(riemann.host, riemann.port)
|
5
|
+
logger.unknown "Riemann state 'ok' host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
|
7
6
|
else
|
8
|
-
logger.
|
7
|
+
logger.fatal "Can't access to riemann host: #{configatron.riemann.host}, port #{configatron.riemann.port}, proto tcp"
|
9
8
|
end
|
10
9
|
Array.new
|
11
10
|
end
|
@@ -16,7 +16,9 @@ class Riemann::Babbler::Runit < Riemann::Babbler
|
|
16
16
|
Dir.glob('/etc/service/*').each do |srv|
|
17
17
|
next if plugin.not_monit.include? srv
|
18
18
|
human_srv = ' ' + srv.gsub(/\/etc\/service\//,"")
|
19
|
-
|
19
|
+
stat_file = File.join(srv, 'supervise', 'stat')
|
20
|
+
next unless File.exists? stat_file
|
21
|
+
if File.read( stat_file ).strip == 'run'
|
20
22
|
@status_history.delete "human_srv"
|
21
23
|
status << {:service => plugin.service + human_srv , :state => 'ok', :description => "runit service #{human_srv} running"}
|
22
24
|
else
|
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: 0.9.
|
4
|
+
version: 0.9.9
|
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-05-
|
12
|
+
date: 2013-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: riemann-client
|
@@ -194,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
segments:
|
196
196
|
- 0
|
197
|
-
hash: -
|
197
|
+
hash: -3817204670355632909
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
none: false
|
200
200
|
requirements:
|