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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/sensu/client/socket.rb +12 -1
- data/lib/sensu/constants.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d820b5c8817d3629ac8a9445b634ae8408cb6975
|
4
|
+
data.tar.gz: 85213493d6121ded2f5810164933caa209da3d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sensu/client/socket.rb
CHANGED
@@ -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,
|
data/lib/sensu/constants.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|