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 +4 -4
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/daemon.rb +2 -2
- data/lib/sensu/server.rb +10 -6
- data/sensu.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f54fd7cdc303445dda468c12c3f0a70eb9c70f4b
|
4
|
+
data.tar.gz: 4717fc2f157a5b9814294aa5a897f3d1eff39c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99c40046c71fe500343ff96645449b7cd0b5bdbd0ebb99cd7d9a05623060623035361ea1de2847a2d8105b9b672320d2fd8c2f99a855d58bc2cf9210697c4273
|
7
|
+
data.tar.gz: 926a8d4167211fcdf9534d1a55cc03c967b6630d585b664fc6213657a880d10fcb11d34ee2b339e3d0eae689fc5f1ba5cc80c6f8dc7c5a139c122281dd4442c9
|
data/lib/sensu/constants.rb
CHANGED
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.
|
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.
|
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.
|
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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
123
|
+
version: 0.0.7
|
124
124
|
prerelease: false
|
125
125
|
type: :runtime
|
126
126
|
- !ruby/object:Gem::Dependency
|