sensu 0.19.2-java → 0.20.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: cb38d95fd7a3f9165301f01340b1bbe44e9609d3
4
- data.tar.gz: fe581d5cf77e1db4c2b5d2489d280e20395a8e74
3
+ metadata.gz: dfee5ba98ccf49fbff72bb13f0014a4bf890d42d
4
+ data.tar.gz: 03f015dd901405f04e49e4c5f80259573719d7d6
5
5
  SHA512:
6
- metadata.gz: 3aab36fe0c35bcd91499864e47411f996926e67544f19a186c10056cca1600fc8576a987226bdebb86fbdd0524f4ebae368307554d37c2af3afebf34003102d3
7
- data.tar.gz: 0aac86b638003e0ced556c156caf3d5cef633b711a91196fec2fc5347994be22d9a395cabffacfd390bb385ad319b3db71e7f4c9781368477af406530db362fe
6
+ metadata.gz: a0a881fa2d6b5c8a46cfbebb811f80267b3ecd6dbf36a2de70cb7a26e43b6d4ae533d01ce814af64e5b8c6eb94816980d33d6f4e97c1a62d95f3ebfcae8ffb90
7
+ data.tar.gz: e00c3d7dab11ef63ef9efb2c9382eecb7f74057f2e105076ac90c957c84c5563113970ac5ef0b03c1eec15586a79171fbd0cb0530e0b112cb2d45532f9ac9c78
data/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 0.20.0 - 2015-07-09
2
+
3
+ ### Features
4
+
5
+ Sensu services now optionally load connection and client configuration
6
+ from environment variables. This feature makes it easier to operate Sensu
7
+ in containerized environments, e.g. Docker. Sensu services read
8
+ configuration from the following variables: SENSU_TRANSPORT_NAME,
9
+ RABBITMQ_URL, REDIS_URL, SENSU_CLIENT_NAME, SENSU_CLIENT_ADDRESS,
10
+ SENSU_CLIENT_SUBSCRIPTIONS, SENSU_API_PORT
11
+
12
+ ### Other
13
+
14
+ The Sensu event action is now correctly set to "create" for metric check
15
+ events.
16
+
17
+ Updated MultiJson and Childprocess to the latest versions, which include
18
+ improvements and bug fixes.
19
+
1
20
  ## 0.19.2 - 2015-06-08
2
21
 
3
22
  ### Other
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.19.2"
4
+ VERSION = "0.20.0"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
data/lib/sensu/daemon.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  require "rubygems"
2
2
 
3
- gem "multi_json", "1.11.0"
3
+ gem "multi_json", "1.11.2"
4
4
 
5
5
  gem "sensu-em", "2.5.2"
6
6
  gem "sensu-logger", "1.0.0"
7
- gem "sensu-settings", "1.9.0"
7
+ gem "sensu-settings", "3.0.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.2.0"
11
+ gem "sensu-spawn", "1.3.0"
12
12
 
13
13
  require "time"
14
14
  require "uri"
@@ -316,13 +316,13 @@ module Sensu
316
316
  :id => random_uuid,
317
317
  :client => client,
318
318
  :check => check,
319
- :occurrences => 1
319
+ :occurrences => 1,
320
+ :action => (flapping ? :flapping : :create)
320
321
  }
321
322
  if check[:status] != 0 || flapping
322
323
  if stored_event && check[:status] == stored_event[:check][:status]
323
324
  event[:occurrences] = stored_event[:occurrences] + 1
324
325
  end
325
- event[:action] = flapping ? :flapping : :create
326
326
  @redis.hset("events:#{client[:name]}", check[:name], MultiJson.dump(event)) do
327
327
  callback.call(event)
328
328
  end
data/sensu.gemspec CHANGED
@@ -14,16 +14,16 @@ Gem::Specification.new do |s|
14
14
  s.has_rdoc = false
15
15
 
16
16
  s.add_dependency "json" if RUBY_VERSION < "1.9"
17
- s.add_dependency "multi_json", "1.11.0"
17
+ s.add_dependency "multi_json", "1.11.2"
18
18
  s.add_dependency "uuidtools", "2.1.5"
19
19
  s.add_dependency "eventmachine", "1.0.3"
20
20
  s.add_dependency "sensu-em", "2.5.2"
21
21
  s.add_dependency "sensu-logger", "1.0.0"
22
- s.add_dependency "sensu-settings", "1.9.0"
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
25
  s.add_dependency "sensu-transport", "3.0.0"
26
- s.add_dependency "sensu-spawn", "1.2.0"
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"
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.2
4
+ version: 0.20.0
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,14 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-08 00:00:00.000000000 Z
12
+ date: 2015-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.11.0
19
+ version: 1.11.2
20
20
  name: multi_json
21
21
  prerelease: false
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.11.0
27
+ version: 1.11.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.9.0
89
+ version: 3.0.0
90
90
  name: sensu-settings
91
91
  prerelease: false
92
92
  type: :runtime
@@ -94,7 +94,7 @@ dependencies:
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 1.9.0
97
+ version: 3.0.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
@@ -142,7 +142,7 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 1.2.0
145
+ version: 1.3.0
146
146
  name: sensu-spawn
147
147
  prerelease: false
148
148
  type: :runtime
@@ -150,7 +150,7 @@ dependencies:
150
150
  requirements:
151
151
  - - '='
152
152
  - !ruby/object:Gem::Version
153
- version: 1.2.0
153
+ version: 1.3.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements: