riemann-smith 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/riemann-smith +15 -3
  3. metadata +4 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73b18722a66fbd815116418e7f2d9fc0f53aefc0
4
- data.tar.gz: dae5a014912e70e5598e482d16413076cd9b50e1
3
+ metadata.gz: 39ad3086f605d21b8c35f1ccd4c20c3b9ee94243
4
+ data.tar.gz: 6fb5b707a7a3f45be239ad4c6312a85c5dfbf94b
5
5
  SHA512:
6
- metadata.gz: ba7674902ec5866d7c62717df4ec6fafdfd10ba4bcddf28647026cc820b268bc3fc042fafa425a2fac7bf58bf7a3177067ed9dfa9be85927a9ecc08cf554e9ef
7
- data.tar.gz: 9872a6ce88a8a3e8ab1ccc57f5b6b26f0a71ee8eac05d1cea1bd1ae046ae717eb213748cdc05a62a297769beedcea781103d2aeda5cc29efdf7c794b3fb90408
6
+ metadata.gz: 06d1ddd7f28ac935150905409c2591525111a4f8f89fb65d43cfe3bc498a49d90a862b98476a124eaeac2f2074f43350757ac037cbdd6906db96fb3a1ef46a52
7
+ data.tar.gz: b5d24d784e9286932cc43d9e3eaf9cc10860d8775e7921a6047e4cf4240e4a7b44d0f36fde4be777901f6b7f21cd42aa9dd5973950f29ae9a911fb5ee778e8a3
data/bin/riemann-smith CHANGED
@@ -30,6 +30,11 @@ class Smith::Riemann
30
30
  @riemann << check
31
31
  end
32
32
 
33
+ queue.on_error do |channel, channel_close|
34
+ logger.fatal { "Channel error: #{channel_close.reply_code}: #{channel_close.reply_text}." }
35
+ Smith.stop
36
+ end
37
+
33
38
  EM.add_periodic_timer(options[:interval]) { run_check(queue) }
34
39
  end
35
40
  end
@@ -143,7 +148,14 @@ end
143
148
 
144
149
  checker = Smith::Riemann.new
145
150
 
146
- Smith.compile_acls
147
- Smith.start do
148
- checker.run
151
+ begin
152
+ include Smith::Logger
153
+
154
+ Smith.compile_acls
155
+ Smith.start do
156
+ checker.run
157
+ end
158
+ rescue => e
159
+ logger.fatal(e.message)
160
+ logger.fatal("Exiting")
149
161
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-smith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Heycock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smith
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.7.9
19
+ version: '0.8'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.7'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.7.9
26
+ version: '0.8'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: sys-proctable
35
29
  requirement: !ruby/object:Gem::Requirement