sensu 0.19.0.beta-java → 0.19.0-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: b40207e12b40942e2860084a7cd460f9bbc94686
4
- data.tar.gz: a6a0763e7095e9137b6a682e679d7b5b508e1357
3
+ metadata.gz: af7ed093ded7b2e179a55b77105fb778cac0652e
4
+ data.tar.gz: 30adb16516c80250d745845b08f7dd86cb2339f7
5
5
  SHA512:
6
- metadata.gz: efda4f1ad3ca092618cbe635af06bb0edae527c90fa7b40764f92e037cec3ef22e6ac919a101a5fce5437e35f9e4dcddda6ee14bf31443a56be8057346fb90e9
7
- data.tar.gz: a99406819a877d3be9f8eed113b0b73cc33c8d381f653d3f35a1e146e7f9b9943d2829afdc1246a1f8dd319992d62b503f9ab56d1f216599c597dbe5d9b5f78a
6
+ metadata.gz: 67e3651ad75c33fea8d6e683a552cfa9cdfadedc0a33850d818640f40af4c958020f2878382a0de2063f622d33b5189f60440c47f42051131df68b66edbc6e03
7
+ data.tar.gz: 61e889d1eb3767d4ff3b727e24980cf34f2c7ac033352bb3ecbc8aacf55f49cdceba43b11a04ecfab1e31e650f2910cae46a778586eb4c4b471abb1f010b18bd
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.19.0 - TBD
1
+ ## 0.19.0 - 2015-06-01
2
2
 
3
3
  ### Features
4
4
 
@@ -24,6 +24,23 @@ Check results API routes/endpoints: `/results`, `/results/:client`, and
24
24
  `/results/:client/:check`. These new check result API routes/endpoints
25
25
  enable new tooling, such as green light dashboards.
26
26
 
27
+ ### Other
28
+
29
+ POSIX spawn libraries are now loaded upfront/immediately, not at child
30
+ process creation. This removes the possibility of load race conditions
31
+ when real threads are used.
32
+
33
+ Many Ruby EventMachine fixes and improvements, including FD_CLOEXEC for
34
+ the Sensu client UDP socket.
35
+
36
+ Fixed event resolution for flapping events.
37
+
38
+ Check source is now published in check requests if configured. Including
39
+ the check source in check requests fixes JIT clients for standard (pubsub)
40
+ check executions and adds context to client check execution log events.
41
+
42
+ JIT clients now have a Sensu version, set to the Sensu server version.
43
+
27
44
  ## 0.18.1 - 2015-05-11
28
45
 
29
46
  ### Other
@@ -317,6 +317,7 @@ module Sensu
317
317
  }
318
318
  read_data(rules) do |data|
319
319
  data[:keepalives] = false
320
+ data[:version] = VERSION
320
321
  data[:timestamp] = Time.now.to_i
321
322
  settings.redis.set("client:#{data[:name]}", MultiJson.dump(data)) do
322
323
  settings.redis.sadd("clients", data[:name]) do
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.19.0.beta"
4
+ VERSION = "0.19.0"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
data/lib/sensu/daemon.rb CHANGED
@@ -2,13 +2,13 @@ require "rubygems"
2
2
 
3
3
  gem "multi_json", "1.11.0"
4
4
 
5
- gem "sensu-em", "2.4.1"
5
+ gem "sensu-em", "2.5.0"
6
6
  gem "sensu-logger", "1.0.0"
7
7
  gem "sensu-settings", "1.9.0"
8
8
  gem "sensu-extension", "1.1.2"
9
9
  gem "sensu-extensions", "1.2.0"
10
10
  gem "sensu-transport", "3.0.0"
11
- gem "sensu-spawn", "1.1.0"
11
+ gem "sensu-spawn", "1.2.0"
12
12
 
13
13
  require "time"
14
14
  require "uri"
@@ -279,9 +279,11 @@ module Sensu
279
279
  def check_flapping?(stored_event, check)
280
280
  if check.has_key?(:low_flap_threshold) && check.has_key?(:high_flap_threshold)
281
281
  was_flapping = stored_event && stored_event[:action] == "flapping"
282
- check[:total_state_change] >= check[:high_flap_threshold] ||
283
- (was_flapping && check[:total_state_change] <= check[:low_flap_threshold]) ||
284
- was_flapping
282
+ if was_flapping
283
+ check[:total_state_change] > check[:low_flap_threshold]
284
+ else
285
+ check[:total_state_change] >= check[:high_flap_threshold]
286
+ end
285
287
  else
286
288
  false
287
289
  end
@@ -353,7 +355,8 @@ module Sensu
353
355
  :name => name,
354
356
  :address => "unknown",
355
357
  :subscriptions => [],
356
- :keepalives => false
358
+ :keepalives => false,
359
+ :version => VERSION
357
360
  }
358
361
  update_client_registry(client, &callback)
359
362
  end
@@ -471,6 +474,7 @@ module Sensu
471
474
  :issued => Time.now.to_i
472
475
  }
473
476
  payload[:command] = check[:command] if check.has_key?(:command)
477
+ payload[:source] = check[:source] if check.has_key?(:source)
474
478
  @logger.info("publishing check request", {
475
479
  :payload => payload,
476
480
  :subscribers => check[:subscribers]
data/sensu.gemspec CHANGED
@@ -17,13 +17,13 @@ Gem::Specification.new do |s|
17
17
  s.add_dependency "multi_json", "1.11.0"
18
18
  s.add_dependency "uuidtools", "2.1.4"
19
19
  s.add_dependency "eventmachine", "1.0.3"
20
- s.add_dependency "sensu-em", "2.4.1"
20
+ s.add_dependency "sensu-em", "2.5.0"
21
21
  s.add_dependency "sensu-logger", "1.0.0"
22
22
  s.add_dependency "sensu-settings", "1.9.0"
23
23
  s.add_dependency "sensu-extension", "1.1.2"
24
24
  s.add_dependency "sensu-extensions", "1.2.0"
25
25
  s.add_dependency "sensu-transport", "3.0.0"
26
- s.add_dependency "sensu-spawn", "1.1.0"
26
+ s.add_dependency "sensu-spawn", "1.2.0"
27
27
  s.add_dependency "em-redis-unified", "1.0.0"
28
28
  s.add_dependency "sinatra", "1.4.6"
29
29
  s.add_dependency "async_sinatra", "1.2.0"
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.19.0.beta
4
+ version: 0.19.0
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,232 +9,232 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-27 00:00:00.000000000 Z
12
+ date: 2015-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: multi_json
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '='
19
- - !ruby/object:Gem::Version
20
- version: 1.11.0
21
15
  requirement: !ruby/object:Gem::Requirement
22
16
  requirements:
23
17
  - - '='
24
18
  - !ruby/object:Gem::Version
25
19
  version: 1.11.0
20
+ name: multi_json
26
21
  prerelease: false
27
22
  type: :runtime
28
- - !ruby/object:Gem::Dependency
29
- name: uuidtools
30
23
  version_requirements: !ruby/object:Gem::Requirement
31
24
  requirements:
32
25
  - - '='
33
26
  - !ruby/object:Gem::Version
34
- version: 2.1.4
27
+ version: 1.11.0
28
+ - !ruby/object:Gem::Dependency
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - '='
38
32
  - !ruby/object:Gem::Version
39
33
  version: 2.1.4
34
+ name: uuidtools
40
35
  prerelease: false
41
36
  type: :runtime
42
- - !ruby/object:Gem::Dependency
43
- name: eventmachine
44
37
  version_requirements: !ruby/object:Gem::Requirement
45
38
  requirements:
46
39
  - - '='
47
40
  - !ruby/object:Gem::Version
48
- version: 1.0.3
41
+ version: 2.1.4
42
+ - !ruby/object:Gem::Dependency
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - '='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.0.3
48
+ name: eventmachine
54
49
  prerelease: false
55
50
  type: :runtime
56
- - !ruby/object:Gem::Dependency
57
- name: sensu-em
58
51
  version_requirements: !ruby/object:Gem::Requirement
59
52
  requirements:
60
53
  - - '='
61
54
  - !ruby/object:Gem::Version
62
- version: 2.4.1
55
+ version: 1.0.3
56
+ - !ruby/object:Gem::Dependency
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - '='
66
60
  - !ruby/object:Gem::Version
67
- version: 2.4.1
61
+ version: 2.5.0
62
+ name: sensu-em
68
63
  prerelease: false
69
64
  type: :runtime
70
- - !ruby/object:Gem::Dependency
71
- name: sensu-logger
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
66
  requirements:
74
67
  - - '='
75
68
  - !ruby/object:Gem::Version
76
- version: 1.0.0
69
+ version: 2.5.0
70
+ - !ruby/object:Gem::Dependency
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - '='
80
74
  - !ruby/object:Gem::Version
81
75
  version: 1.0.0
76
+ name: sensu-logger
82
77
  prerelease: false
83
78
  type: :runtime
84
- - !ruby/object:Gem::Dependency
85
- name: sensu-settings
86
79
  version_requirements: !ruby/object:Gem::Requirement
87
80
  requirements:
88
81
  - - '='
89
82
  - !ruby/object:Gem::Version
90
- version: 1.9.0
83
+ version: 1.0.0
84
+ - !ruby/object:Gem::Dependency
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - '='
94
88
  - !ruby/object:Gem::Version
95
89
  version: 1.9.0
90
+ name: sensu-settings
96
91
  prerelease: false
97
92
  type: :runtime
98
- - !ruby/object:Gem::Dependency
99
- name: sensu-extension
100
93
  version_requirements: !ruby/object:Gem::Requirement
101
94
  requirements:
102
95
  - - '='
103
96
  - !ruby/object:Gem::Version
104
- version: 1.1.2
97
+ version: 1.9.0
98
+ - !ruby/object:Gem::Dependency
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - '='
108
102
  - !ruby/object:Gem::Version
109
103
  version: 1.1.2
104
+ name: sensu-extension
110
105
  prerelease: false
111
106
  type: :runtime
112
- - !ruby/object:Gem::Dependency
113
- name: sensu-extensions
114
107
  version_requirements: !ruby/object:Gem::Requirement
115
108
  requirements:
116
109
  - - '='
117
110
  - !ruby/object:Gem::Version
118
- version: 1.2.0
111
+ version: 1.1.2
112
+ - !ruby/object:Gem::Dependency
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - '='
122
116
  - !ruby/object:Gem::Version
123
117
  version: 1.2.0
118
+ name: sensu-extensions
124
119
  prerelease: false
125
120
  type: :runtime
126
- - !ruby/object:Gem::Dependency
127
- name: sensu-transport
128
121
  version_requirements: !ruby/object:Gem::Requirement
129
122
  requirements:
130
123
  - - '='
131
124
  - !ruby/object:Gem::Version
132
- version: 3.0.0
125
+ version: 1.2.0
126
+ - !ruby/object:Gem::Dependency
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - '='
136
130
  - !ruby/object:Gem::Version
137
131
  version: 3.0.0
132
+ name: sensu-transport
138
133
  prerelease: false
139
134
  type: :runtime
140
- - !ruby/object:Gem::Dependency
141
- name: sensu-spawn
142
135
  version_requirements: !ruby/object:Gem::Requirement
143
136
  requirements:
144
137
  - - '='
145
138
  - !ruby/object:Gem::Version
146
- version: 1.1.0
139
+ version: 3.0.0
140
+ - !ruby/object:Gem::Dependency
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
143
  - - '='
150
144
  - !ruby/object:Gem::Version
151
- version: 1.1.0
145
+ version: 1.2.0
146
+ name: sensu-spawn
152
147
  prerelease: false
153
148
  type: :runtime
154
- - !ruby/object:Gem::Dependency
155
- name: em-redis-unified
156
149
  version_requirements: !ruby/object:Gem::Requirement
157
150
  requirements:
158
151
  - - '='
159
152
  - !ruby/object:Gem::Version
160
- version: 1.0.0
153
+ version: 1.2.0
154
+ - !ruby/object:Gem::Dependency
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - '='
164
158
  - !ruby/object:Gem::Version
165
159
  version: 1.0.0
160
+ name: em-redis-unified
166
161
  prerelease: false
167
162
  type: :runtime
168
- - !ruby/object:Gem::Dependency
169
- name: sinatra
170
163
  version_requirements: !ruby/object:Gem::Requirement
171
164
  requirements:
172
165
  - - '='
173
166
  - !ruby/object:Gem::Version
174
- version: 1.4.6
167
+ version: 1.0.0
168
+ - !ruby/object:Gem::Dependency
175
169
  requirement: !ruby/object:Gem::Requirement
176
170
  requirements:
177
171
  - - '='
178
172
  - !ruby/object:Gem::Version
179
173
  version: 1.4.6
174
+ name: sinatra
180
175
  prerelease: false
181
176
  type: :runtime
182
- - !ruby/object:Gem::Dependency
183
- name: async_sinatra
184
177
  version_requirements: !ruby/object:Gem::Requirement
185
178
  requirements:
186
179
  - - '='
187
180
  - !ruby/object:Gem::Version
188
- version: 1.2.0
181
+ version: 1.4.6
182
+ - !ruby/object:Gem::Dependency
189
183
  requirement: !ruby/object:Gem::Requirement
190
184
  requirements:
191
185
  - - '='
192
186
  - !ruby/object:Gem::Version
193
187
  version: 1.2.0
188
+ name: async_sinatra
194
189
  prerelease: false
195
190
  type: :runtime
196
- - !ruby/object:Gem::Dependency
197
- name: rake
198
191
  version_requirements: !ruby/object:Gem::Requirement
199
192
  requirements:
200
- - - ~>
193
+ - - '='
201
194
  - !ruby/object:Gem::Version
202
- version: '10.3'
195
+ version: 1.2.0
196
+ - !ruby/object:Gem::Dependency
203
197
  requirement: !ruby/object:Gem::Requirement
204
198
  requirements:
205
199
  - - ~>
206
200
  - !ruby/object:Gem::Version
207
201
  version: '10.3'
202
+ name: rake
208
203
  prerelease: false
209
204
  type: :development
210
- - !ruby/object:Gem::Dependency
211
- name: rspec
212
205
  version_requirements: !ruby/object:Gem::Requirement
213
206
  requirements:
214
207
  - - ~>
215
208
  - !ruby/object:Gem::Version
216
- version: 3.0.0
209
+ version: '10.3'
210
+ - !ruby/object:Gem::Dependency
217
211
  requirement: !ruby/object:Gem::Requirement
218
212
  requirements:
219
213
  - - ~>
220
214
  - !ruby/object:Gem::Version
221
215
  version: 3.0.0
216
+ name: rspec
222
217
  prerelease: false
223
218
  type: :development
224
- - !ruby/object:Gem::Dependency
225
- name: em-http-request
226
219
  version_requirements: !ruby/object:Gem::Requirement
227
220
  requirements:
228
221
  - - ~>
229
222
  - !ruby/object:Gem::Version
230
- version: '1.1'
223
+ version: 3.0.0
224
+ - !ruby/object:Gem::Dependency
231
225
  requirement: !ruby/object:Gem::Requirement
232
226
  requirements:
233
227
  - - ~>
234
228
  - !ruby/object:Gem::Version
235
229
  version: '1.1'
230
+ name: em-http-request
236
231
  prerelease: false
237
232
  type: :development
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: '1.1'
238
238
  description: A monitoring framework that aims to be simple, malleable, and scalable.
239
239
  email:
240
240
  - portertech@gmail.com
@@ -283,9 +283,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
283
  version: '0'
284
284
  required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  requirements:
286
- - - '>'
286
+ - - '>='
287
287
  - !ruby/object:Gem::Version
288
- version: 1.3.1
288
+ version: '0'
289
289
  requirements: []
290
290
  rubyforge_project:
291
291
  rubygems_version: 2.1.9