sensu 0.13.0.beta.1-java → 0.13.0.beta.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6b5f28dcc77e1d930eb8e71d6a7907eb36aa32c
4
- data.tar.gz: 50303ac9338607ee19dd12e9d8e1f3f084bb6b25
3
+ metadata.gz: f54fd7cdc303445dda468c12c3f0a70eb9c70f4b
4
+ data.tar.gz: 4717fc2f157a5b9814294aa5a897f3d1eff39c2c
5
5
  SHA512:
6
- metadata.gz: 87d745900be3449d1b5a63f36e5d5c8a088386b85bad15baa50ee88df3fcf7d54112165a593598ccc6dccff51759c91014f209789b172d73c061c5ab5f2e361a
7
- data.tar.gz: 0476381bb4114bdc7d6332ce279eab2fa226245c9aee39c1cf273bfe5b8940949c3a774c36c417b858c8ad5500d30f02f1cac940d33f595be910a41a1be4ec84
6
+ metadata.gz: 99c40046c71fe500343ff96645449b7cd0b5bdbd0ebb99cd7d9a05623060623035361ea1de2847a2d8105b9b672320d2fd8c2f99a855d58bc2cf9210697c4273
7
+ data.tar.gz: 926a8d4167211fcdf9534d1a55cc03c967b6630d585b664fc6213657a880d10fcb11d34ee2b339e3d0eae689fc5f1ba5cc80c6f8dc7c5a139c122281dd4442c9
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.13.0.beta.1'
3
+ VERSION = '0.13.0.beta.2'
4
4
 
5
5
  SEVERITIES = %w[ok warning critical unknown]
6
6
 
data/lib/sensu/daemon.rb CHANGED
@@ -2,12 +2,12 @@ require 'rubygems'
2
2
 
3
3
  gem 'multi_json', '1.10.1'
4
4
 
5
- gem 'sensu-em', '2.1.0'
5
+ gem 'sensu-em', '2.2.0'
6
6
  gem 'sensu-logger', '0.0.1'
7
7
  gem 'sensu-settings', '0.0.7'
8
8
  gem 'sensu-extension', '0.0.3'
9
9
  gem 'sensu-extensions', '0.0.5'
10
- gem 'sensu-transport', '0.0.6'
10
+ gem 'sensu-transport', '0.0.7'
11
11
  gem 'sensu-spawn', '0.0.3'
12
12
 
13
13
  require 'time'
data/lib/sensu/server.rb CHANGED
@@ -537,17 +537,21 @@ module Sensu
537
537
 
538
538
  def determine_stale_clients
539
539
  @logger.info('determining stale clients')
540
+ keepalive_check = {
541
+ :thresholds => {
542
+ :warning => 120,
543
+ :critical => 180
544
+ }
545
+ }
546
+ if @settings.handler_exists?(:keepalive)
547
+ keepalive_check[:handler] = "keepalive"
548
+ end
540
549
  @redis.smembers('clients') do |clients|
541
550
  clients.each do |client_name|
542
551
  @redis.get('client:' + client_name) do |client_json|
543
552
  unless client_json.nil?
544
553
  client = MultiJson.load(client_json)
545
- check = {
546
- :thresholds => {
547
- :warning => 120,
548
- :critical => 180
549
- }
550
- }
554
+ check = keepalive_check.dup
551
555
  if client.has_key?(:keepalive)
552
556
  check = deep_merge(check, client[:keepalive])
553
557
  end
data/sensu.gemspec CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency('json') if RUBY_VERSION < "1.9"
17
17
  s.add_dependency('multi_json', '1.10.1')
18
18
  s.add_dependency('uuidtools', '2.1.4')
19
- s.add_dependency('sensu-em', '2.1.0')
19
+ s.add_dependency('sensu-em', '2.2.0')
20
20
  s.add_dependency('sensu-logger', '0.0.1')
21
21
  s.add_dependency('sensu-settings', '0.0.7')
22
22
  s.add_dependency('sensu-extension', '0.0.3')
23
23
  s.add_dependency('sensu-extensions', '0.0.5')
24
- s.add_dependency('sensu-transport', '0.0.6')
24
+ s.add_dependency('sensu-transport', '0.0.7')
25
25
  s.add_dependency('sensu-spawn', '0.0.3')
26
26
  s.add_dependency('em-redis-unified', '0.5.0')
27
27
  s.add_dependency('sinatra', '1.3.5')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.beta.1
4
+ version: 0.13.0.beta.2
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-29 00:00:00.000000000 Z
12
+ date: 2014-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -45,12 +45,12 @@ dependencies:
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.1.0
48
+ version: 2.2.0
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 2.1.0
53
+ version: 2.2.0
54
54
  prerelease: false
55
55
  type: :runtime
56
56
  - !ruby/object:Gem::Dependency
@@ -115,12 +115,12 @@ dependencies:
115
115
  requirements:
116
116
  - - '='
117
117
  - !ruby/object:Gem::Version
118
- version: 0.0.6
118
+ version: 0.0.7
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - '='
122
122
  - !ruby/object:Gem::Version
123
- version: 0.0.6
123
+ version: 0.0.7
124
124
  prerelease: false
125
125
  type: :runtime
126
126
  - !ruby/object:Gem::Dependency