sensu 0.20.0-java → 0.20.1-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: dfee5ba98ccf49fbff72bb13f0014a4bf890d42d
4
- data.tar.gz: 03f015dd901405f04e49e4c5f80259573719d7d6
3
+ metadata.gz: 2564018e7a3f8f91334d80d9e2152e40f35c2d09
4
+ data.tar.gz: 38f70467076931ae86ea096c54198f3259f1a857
5
5
  SHA512:
6
- metadata.gz: a0a881fa2d6b5c8a46cfbebb811f80267b3ecd6dbf36a2de70cb7a26e43b6d4ae533d01ce814af64e5b8c6eb94816980d33d6f4e97c1a62d95f3ebfcae8ffb90
7
- data.tar.gz: e00c3d7dab11ef63ef9efb2c9382eecb7f74057f2e105076ac90c957c84c5563113970ac5ef0b03c1eec15586a79171fbd0cb0530e0b112cb2d45532f9ac9c78
6
+ metadata.gz: e1bd592023a03bfac1179997f7884eb02e69437b41b345268126f1e5bd9f411c3c9de965674f7726d47e914f6f90e1aa18e1a3e0d2ed9415904d0f8bdf10fdca
7
+ data.tar.gz: f7202a8c458392b4f8d7e8c3d66751c568e41e8f339bb4f247f89c668923e3734507eb7c1492714231412d0e1425e6ac66507d7523c910ea58953b9497ce54c4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 0.20.1 - 2015-07-27
2
+
3
+ ### Other
4
+
5
+ Resolving an event, that includes a check TTL, with the Sensu API will
6
+ remove the check from TTL monitoring, until another check result with a
7
+ TTL is received.
8
+
9
+ Added a timestamp to Sensu event data, recording the time of event
10
+ creation.
11
+
12
+ Fixed RabbitMQ transport connection AMQP heartbeat monitoring, the AMQP
13
+ library was sending heartbeat frames on closed connections.
14
+
15
+ The RabbitMQ transport now resets (close connection, etc.) when making
16
+ periodic reconnect attempts. The periodic reconnect timer delay will now
17
+ be incremented by 2 on every attempt, to a maximum of 20 seconds.
18
+
1
19
  ## 0.20.0 - 2015-07-09
2
20
 
3
21
  ### Features
@@ -17,6 +35,15 @@ events.
17
35
  Updated MultiJson and Childprocess to the latest versions, which include
18
36
  improvements and bug fixes.
19
37
 
38
+ Sensu now sets the `SENSU_LOADED_TEMPFILE` environment variable to a
39
+ temporary file path, a file containing the colon delimited list of loaded
40
+ configuration files for the Sensu service
41
+ (e.g.`/tmp/sensu_client_loaded_files`). This new temporary file and
42
+ environment variable (`SENSU_LOADED_TEMPFILE`) replaced
43
+ `SENSU_CONFIG_FILES`, which has been removed, due to the exec ARG_MAX
44
+ (E2BIG) error when spawning processes after loading many configuration
45
+ files (e.g. > 2000).
46
+
20
47
  ## 0.19.2 - 2015-06-08
21
48
 
22
49
  ### Other
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.20.0"
4
+ VERSION = "0.20.1"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
data/lib/sensu/daemon.rb CHANGED
@@ -7,7 +7,7 @@ gem "sensu-logger", "1.0.0"
7
7
  gem "sensu-settings", "3.0.0"
8
8
  gem "sensu-extension", "1.1.2"
9
9
  gem "sensu-extensions", "1.2.0"
10
- gem "sensu-transport", "3.0.0"
10
+ gem "sensu-transport", "3.2.0"
11
11
  gem "sensu-spawn", "1.3.0"
12
12
 
13
13
  require "time"
@@ -317,7 +317,8 @@ module Sensu
317
317
  :client => client,
318
318
  :check => check,
319
319
  :occurrences => 1,
320
- :action => (flapping ? :flapping : :create)
320
+ :action => (flapping ? :flapping : :create),
321
+ :timestamp => Time.now.to_i
321
322
  }
322
323
  if check[:status] != 0 || flapping
323
324
  if stored_event && check[:status] == stored_event[:check][:status]
@@ -666,7 +667,7 @@ module Sensu
666
667
  @redis.get("result:#{result_key}") do |result_json|
667
668
  unless result_json.nil?
668
669
  check = MultiJson.load(result_json)
669
- next unless check[:ttl] && check[:executed]
670
+ next unless check[:ttl] && check[:executed] && !check[:force_resolve]
670
671
  time_since_last_execution = Time.now.to_i - check[:executed]
671
672
  if time_since_last_execution >= check[:ttl]
672
673
  check[:output] = "Last check execution was "
data/sensu.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency "sensu-settings", "3.0.0"
23
23
  s.add_dependency "sensu-extension", "1.1.2"
24
24
  s.add_dependency "sensu-extensions", "1.2.0"
25
- s.add_dependency "sensu-transport", "3.0.0"
25
+ s.add_dependency "sensu-transport", "3.2.0"
26
26
  s.add_dependency "sensu-spawn", "1.3.0"
27
27
  s.add_dependency "em-redis-unified", "1.0.0"
28
28
  s.add_dependency "sinatra", "1.4.6"
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.20.0
4
+ version: 0.20.1
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-07-09 00:00:00.000000000 Z
12
+ date: 2015-07-27 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.2
15
21
  requirement: !ruby/object:Gem::Requirement
16
22
  requirements:
17
23
  - - '='
18
24
  - !ruby/object:Gem::Version
19
25
  version: 1.11.2
20
- name: multi_json
21
26
  prerelease: false
22
27
  type: :runtime
28
+ - !ruby/object:Gem::Dependency
29
+ name: uuidtools
23
30
  version_requirements: !ruby/object:Gem::Requirement
24
31
  requirements:
25
32
  - - '='
26
33
  - !ruby/object:Gem::Version
27
- version: 1.11.2
28
- - !ruby/object:Gem::Dependency
34
+ version: 2.1.5
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - '='
32
38
  - !ruby/object:Gem::Version
33
39
  version: 2.1.5
34
- name: uuidtools
35
40
  prerelease: false
36
41
  type: :runtime
42
+ - !ruby/object:Gem::Dependency
43
+ name: eventmachine
37
44
  version_requirements: !ruby/object:Gem::Requirement
38
45
  requirements:
39
46
  - - '='
40
47
  - !ruby/object:Gem::Version
41
- version: 2.1.5
42
- - !ruby/object:Gem::Dependency
48
+ version: 1.0.3
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - '='
46
52
  - !ruby/object:Gem::Version
47
53
  version: 1.0.3
48
- name: eventmachine
49
54
  prerelease: false
50
55
  type: :runtime
56
+ - !ruby/object:Gem::Dependency
57
+ name: sensu-em
51
58
  version_requirements: !ruby/object:Gem::Requirement
52
59
  requirements:
53
60
  - - '='
54
61
  - !ruby/object:Gem::Version
55
- version: 1.0.3
56
- - !ruby/object:Gem::Dependency
62
+ version: 2.5.2
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - '='
60
66
  - !ruby/object:Gem::Version
61
67
  version: 2.5.2
62
- name: sensu-em
63
68
  prerelease: false
64
69
  type: :runtime
70
+ - !ruby/object:Gem::Dependency
71
+ name: sensu-logger
65
72
  version_requirements: !ruby/object:Gem::Requirement
66
73
  requirements:
67
74
  - - '='
68
75
  - !ruby/object:Gem::Version
69
- version: 2.5.2
70
- - !ruby/object:Gem::Dependency
76
+ version: 1.0.0
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - '='
74
80
  - !ruby/object:Gem::Version
75
81
  version: 1.0.0
76
- name: sensu-logger
77
82
  prerelease: false
78
83
  type: :runtime
84
+ - !ruby/object:Gem::Dependency
85
+ name: sensu-settings
79
86
  version_requirements: !ruby/object:Gem::Requirement
80
87
  requirements:
81
88
  - - '='
82
89
  - !ruby/object:Gem::Version
83
- version: 1.0.0
84
- - !ruby/object:Gem::Dependency
90
+ version: 3.0.0
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - '='
88
94
  - !ruby/object:Gem::Version
89
95
  version: 3.0.0
90
- name: sensu-settings
91
96
  prerelease: false
92
97
  type: :runtime
98
+ - !ruby/object:Gem::Dependency
99
+ name: sensu-extension
93
100
  version_requirements: !ruby/object:Gem::Requirement
94
101
  requirements:
95
102
  - - '='
96
103
  - !ruby/object:Gem::Version
97
- version: 3.0.0
98
- - !ruby/object:Gem::Dependency
104
+ version: 1.1.2
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
107
  - - '='
102
108
  - !ruby/object:Gem::Version
103
109
  version: 1.1.2
104
- name: sensu-extension
105
110
  prerelease: false
106
111
  type: :runtime
112
+ - !ruby/object:Gem::Dependency
113
+ name: sensu-extensions
107
114
  version_requirements: !ruby/object:Gem::Requirement
108
115
  requirements:
109
116
  - - '='
110
117
  - !ruby/object:Gem::Version
111
- version: 1.1.2
112
- - !ruby/object:Gem::Dependency
118
+ version: 1.2.0
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
121
  - - '='
116
122
  - !ruby/object:Gem::Version
117
123
  version: 1.2.0
118
- name: sensu-extensions
119
124
  prerelease: false
120
125
  type: :runtime
126
+ - !ruby/object:Gem::Dependency
127
+ name: sensu-transport
121
128
  version_requirements: !ruby/object:Gem::Requirement
122
129
  requirements:
123
130
  - - '='
124
131
  - !ruby/object:Gem::Version
125
- version: 1.2.0
126
- - !ruby/object:Gem::Dependency
132
+ version: 3.2.0
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
135
  - - '='
130
136
  - !ruby/object:Gem::Version
131
- version: 3.0.0
132
- name: sensu-transport
137
+ version: 3.2.0
133
138
  prerelease: false
134
139
  type: :runtime
140
+ - !ruby/object:Gem::Dependency
141
+ name: sensu-spawn
135
142
  version_requirements: !ruby/object:Gem::Requirement
136
143
  requirements:
137
144
  - - '='
138
145
  - !ruby/object:Gem::Version
139
- version: 3.0.0
140
- - !ruby/object:Gem::Dependency
146
+ version: 1.3.0
141
147
  requirement: !ruby/object:Gem::Requirement
142
148
  requirements:
143
149
  - - '='
144
150
  - !ruby/object:Gem::Version
145
151
  version: 1.3.0
146
- name: sensu-spawn
147
152
  prerelease: false
148
153
  type: :runtime
154
+ - !ruby/object:Gem::Dependency
155
+ name: em-redis-unified
149
156
  version_requirements: !ruby/object:Gem::Requirement
150
157
  requirements:
151
158
  - - '='
152
159
  - !ruby/object:Gem::Version
153
- version: 1.3.0
154
- - !ruby/object:Gem::Dependency
160
+ version: 1.0.0
155
161
  requirement: !ruby/object:Gem::Requirement
156
162
  requirements:
157
163
  - - '='
158
164
  - !ruby/object:Gem::Version
159
165
  version: 1.0.0
160
- name: em-redis-unified
161
166
  prerelease: false
162
167
  type: :runtime
168
+ - !ruby/object:Gem::Dependency
169
+ name: sinatra
163
170
  version_requirements: !ruby/object:Gem::Requirement
164
171
  requirements:
165
172
  - - '='
166
173
  - !ruby/object:Gem::Version
167
- version: 1.0.0
168
- - !ruby/object:Gem::Dependency
174
+ version: 1.4.6
169
175
  requirement: !ruby/object:Gem::Requirement
170
176
  requirements:
171
177
  - - '='
172
178
  - !ruby/object:Gem::Version
173
179
  version: 1.4.6
174
- name: sinatra
175
180
  prerelease: false
176
181
  type: :runtime
182
+ - !ruby/object:Gem::Dependency
183
+ name: async_sinatra
177
184
  version_requirements: !ruby/object:Gem::Requirement
178
185
  requirements:
179
186
  - - '='
180
187
  - !ruby/object:Gem::Version
181
- version: 1.4.6
182
- - !ruby/object:Gem::Dependency
188
+ version: 1.2.0
183
189
  requirement: !ruby/object:Gem::Requirement
184
190
  requirements:
185
191
  - - '='
186
192
  - !ruby/object:Gem::Version
187
193
  version: 1.2.0
188
- name: async_sinatra
189
194
  prerelease: false
190
195
  type: :runtime
196
+ - !ruby/object:Gem::Dependency
197
+ name: rake
191
198
  version_requirements: !ruby/object:Gem::Requirement
192
199
  requirements:
193
- - - '='
200
+ - - ~>
194
201
  - !ruby/object:Gem::Version
195
- version: 1.2.0
196
- - !ruby/object:Gem::Dependency
202
+ version: '10.3'
197
203
  requirement: !ruby/object:Gem::Requirement
198
204
  requirements:
199
205
  - - ~>
200
206
  - !ruby/object:Gem::Version
201
207
  version: '10.3'
202
- name: rake
203
208
  prerelease: false
204
209
  type: :development
210
+ - !ruby/object:Gem::Dependency
211
+ name: rspec
205
212
  version_requirements: !ruby/object:Gem::Requirement
206
213
  requirements:
207
214
  - - ~>
208
215
  - !ruby/object:Gem::Version
209
- version: '10.3'
210
- - !ruby/object:Gem::Dependency
216
+ version: 3.0.0
211
217
  requirement: !ruby/object:Gem::Requirement
212
218
  requirements:
213
219
  - - ~>
214
220
  - !ruby/object:Gem::Version
215
221
  version: 3.0.0
216
- name: rspec
217
222
  prerelease: false
218
223
  type: :development
224
+ - !ruby/object:Gem::Dependency
225
+ name: em-http-request
219
226
  version_requirements: !ruby/object:Gem::Requirement
220
227
  requirements:
221
228
  - - ~>
222
229
  - !ruby/object:Gem::Version
223
- version: 3.0.0
224
- - !ruby/object:Gem::Dependency
230
+ version: '1.1'
225
231
  requirement: !ruby/object:Gem::Requirement
226
232
  requirements:
227
233
  - - ~>
228
234
  - !ruby/object:Gem::Version
229
235
  version: '1.1'
230
- name: em-http-request
231
236
  prerelease: false
232
237
  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