sensu 0.17.0-java → 0.17.1-java
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 +11 -0
- data/lib/sensu/client/process.rb +4 -4
- 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: 1ef4795a80c565625fc3759a3560666fb4c44757
|
4
|
+
data.tar.gz: 4c34c6daafa600fc4d0c1b3af5a040a1fa4ae637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f75462a8c65537eb7ce8b0d923e39abf30aca22a2dbd710b195a464711b663d26aa38241b8531911c4ec0168ba3f7b950f8d6041ef6007533592a833ccb986f1
|
7
|
+
data.tar.gz: cddc959f388ec22776eb63e87f4cf0a2852bad8b9c466fb8e1117561768d2005ba1d7e4229437387a555128ecc49d5ee21d70be20ad4ca059cb8db62e19317c8
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## 0.17.1 - 2015-03-30
|
2
|
+
|
3
|
+
### Features
|
4
|
+
|
5
|
+
Check requests can now include a check "extension" to run, instead of a
|
6
|
+
command.
|
7
|
+
|
8
|
+
### Other
|
9
|
+
|
10
|
+
Always merge check requests with local check definitions if they exist.
|
11
|
+
|
1
12
|
## 0.17.0 - 2015-03-17
|
2
13
|
|
3
14
|
### Features
|
data/lib/sensu/client/process.rb
CHANGED
@@ -209,11 +209,11 @@ module Sensu
|
|
209
209
|
# @param check [Hash]
|
210
210
|
def process_check_request(check)
|
211
211
|
@logger.debug("processing check", :check => check)
|
212
|
+
if @settings.check_exists?(check[:name])
|
213
|
+
check.merge!(@settings[:checks][check[:name]])
|
214
|
+
end
|
212
215
|
if check.has_key?(:command)
|
213
|
-
if @settings.check_exists?(check[:name])
|
214
|
-
check.merge!(@settings[:checks][check[:name]])
|
215
|
-
execute_check_command(check)
|
216
|
-
elsif @safe_mode
|
216
|
+
if @safe_mode && !@settings.check_exists?(check[:name])
|
217
217
|
check[:output] = "Check is not locally defined (safe mode)"
|
218
218
|
check[:status] = 3
|
219
219
|
check[:handle] = false
|
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.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|