sensu 0.23.1-java → 0.23.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: 866d1d5eee8c4d65ac10130982ee3b6226023b9f
4
- data.tar.gz: a188b7aa0752e9d772cacefbb04ad15838be4eda
3
+ metadata.gz: d820b5c8817d3629ac8a9445b634ae8408cb6975
4
+ data.tar.gz: 85213493d6121ded2f5810164933caa209da3d3b
5
5
  SHA512:
6
- metadata.gz: a101c0d1524311c0fb1924ee701b459ee7cc47cb031d4c08b7fea68f8a18bd2a152196e4ee8048271a683fa5d1ee7673b584a58c3da661557bde5e6dfe61e4b6
7
- data.tar.gz: 58c371e37f80790dfa90f492a68b4e879d39f17128d2d61af803a41029e6c9ccd909541edd00b927f0468bd44f8db557ec3754bafb83379f7aa084f6c9515eed
6
+ metadata.gz: d0726b130365217b0f66260f95e31ea03c0ce521f7c1888e03025f1776d2b13cc48c06dd6566d2d1a7df6e27a82dc387a6bd14989fa87f0a20054162e78b5464
7
+ data.tar.gz: e8ba348f2c0122276b137c6a3b842ee843cd7eff8907e430e740b60ffa353dae61268a799f57bfa3bb514a4ec6dae715a8c8f1462ed53906ad22a81e5d35ffe5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.23.2 - 2016-04-25
2
+
3
+ ### Fixes
4
+
5
+ Fixed client socket check result publishing when the client has a
6
+ signature. The client signature is now added to the check result payload,
7
+ making it valid.
8
+
9
+ ### Other
10
+
11
+ Added client socket check result check TTL validation.
12
+
1
13
  ## 0.23.1 - 2016-04-15
2
14
 
3
15
  ### Other
@@ -134,6 +134,9 @@ module Sensu
134
134
  unless check[:executed].is_a?(Integer)
135
135
  raise DataError, "check executed timestamp must be an integer"
136
136
  end
137
+ unless check[:ttl].nil? || (check[:ttl].is_a?(Integer) && check[:ttl] > 0)
138
+ raise DataError, "check ttl must be an integer greater than 0"
139
+ end
137
140
  end
138
141
 
139
142
  # Publish a check result to the Sensu transport.
@@ -144,8 +147,16 @@ module Sensu
144
147
  :client => @settings[:client][:name],
145
148
  :check => check.merge(:issued => Time.now.to_i)
146
149
  }
150
+ payload[:signature] = @settings[:client][:signature] if @settings[:client][:signature]
147
151
  @logger.info("publishing check result", :payload => payload)
148
- @transport.publish(:direct, "results", Sensu::JSON.dump(payload))
152
+ @transport.publish(:direct, "results", Sensu::JSON.dump(payload)) do |info|
153
+ if info[:error]
154
+ @logger.error("failed to publish check result", {
155
+ :payload => payload,
156
+ :error => info[:error].to_s
157
+ })
158
+ end
159
+ end
149
160
  end
150
161
 
151
162
  # Process a check result. Set check result attribute defaults,
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.23.1".freeze
4
+ VERSION = "0.23.2".freeze
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown].freeze
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.23.1
4
+ version: 0.23.2
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-04-15 00:00:00.000000000 Z
12
+ date: 2016-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine