sensu 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/sensu/client/process.rb +2 -2
- 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: 5716bcce7e37813806670e77b25c94e06dfa9c02
|
4
|
+
data.tar.gz: ad76c66cad53d2c722af68f0513e2a346adf7afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9cd95bde516a9fa44b29f107d5f8cd68c61c26a0f49981232af6f4916540221d558c3bf3dcfb49ae0d4c6ed5311f496168ed74b804c6453e6383a2c85d35191
|
7
|
+
data.tar.gz: 763abe545f122b8f0c624ab29c523d1723af31012605a19171fd57916effc1552b5089746b39f2398eddaedc91e718fdbda62a4a159d2e44af2bf8ce0dd9966c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 1.1.3 - 2017-11-24
|
2
|
+
|
3
|
+
### Fixes
|
4
|
+
|
5
|
+
Fixed a bug in the Sensu client that broke check hooks named after numeric
|
6
|
+
statuses (e.g. `"2"`) and `"non-zero"`, they were never executed unless
|
7
|
+
the client had a local check definition. (#1773)
|
8
|
+
|
1
9
|
## 1.1.2 - 2017-10-27
|
2
10
|
|
3
11
|
### Fixes
|
data/lib/sensu/client/process.rb
CHANGED
@@ -131,9 +131,9 @@ module Sensu
|
|
131
131
|
def execute_check_hook(check)
|
132
132
|
@logger.debug("attempting to execute check hook", :check => check)
|
133
133
|
severity = SEVERITIES[check[:status]] || "unknown"
|
134
|
-
hook = check[:hooks][check[:status].to_s] || check[:hooks][severity.to_sym]
|
134
|
+
hook = check[:hooks][check[:status].to_s.to_sym] || check[:hooks][severity.to_sym]
|
135
135
|
if hook.nil? && check[:status] != 0
|
136
|
-
hook = check[:hooks]["non-zero"]
|
136
|
+
hook = check[:hooks]["non-zero".to_sym]
|
137
137
|
end
|
138
138
|
if hook
|
139
139
|
command, unmatched_tokens = substitute_tokens(hook[:command].dup, @settings[:client])
|
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: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
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: 2017-
|
12
|
+
date: 2017-11-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|