sensu-plugin 1.4.2 → 1.4.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/lib/sensu-handler.rb +2 -2
- data/lib/sensu-plugin.rb +1 -1
- data/lib/sensu-plugin/utils.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17743fd5936eb4475ead28bb8ad54cdae4717fd9
|
|
4
|
+
data.tar.gz: b64587bb73c77055c3380d261e6c1ce9da4a9328
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e01ded70b64dcca3a37098105692e7cc2e7e0a9c0abd4418dd51878bd29c6bc4944a6c54b128ab21edfdc4793622e11fede961173cf80960fba232fe743f60c2
|
|
7
|
+
data.tar.gz: dbc1761185f3ebe493f155821352f9a70001a154f511db4216883d9832e943d3be5f8133cedbe9c1b4702d1e9055997ac928ef12ad1046820c059ac465fc0446
|
data/lib/sensu-handler.rb
CHANGED
|
@@ -133,7 +133,7 @@ module Sensu
|
|
|
133
133
|
end
|
|
134
134
|
domain = api_settings['host'].start_with?('http') ? api_settings['host'] : 'http://' + api_settings['host']
|
|
135
135
|
uri = URI("#{domain}:#{api_settings['port']}#{path}")
|
|
136
|
-
req = net_http_req_class(method).new(uri)
|
|
136
|
+
req = net_http_req_class(method).new(uri.to_s)
|
|
137
137
|
if api_settings['user'] && api_settings['password']
|
|
138
138
|
req.basic_auth(api_settings['user'], api_settings['password'])
|
|
139
139
|
end
|
|
@@ -201,7 +201,7 @@ module Sensu
|
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
def event_exists?(client, check)
|
|
204
|
-
api_request(:GET, '/
|
|
204
|
+
api_request(:GET, '/events/' + client + '/' + check).code == '200'
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
def filter_dependencies
|
data/lib/sensu-plugin.rb
CHANGED
data/lib/sensu-plugin/utils.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Sensu
|
|
|
5
5
|
module Utils
|
|
6
6
|
|
|
7
7
|
def config_files
|
|
8
|
-
if ENV['SENSU_LOADED_TEMPFILE']
|
|
8
|
+
if ENV['SENSU_LOADED_TEMPFILE'] && File.file?(ENV['SENSU_LOADED_TEMPFILE'])
|
|
9
9
|
IO.read(ENV['SENSU_LOADED_TEMPFILE']).split(':')
|
|
10
10
|
elsif ENV['SENSU_CONFIG_FILES']
|
|
11
11
|
ENV['SENSU_CONFIG_FILES'].split(':')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Decklin Foster
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json
|
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
111
111
|
version: '0'
|
|
112
112
|
requirements: []
|
|
113
113
|
rubyforge_project:
|
|
114
|
-
rubygems_version: 2.
|
|
114
|
+
rubygems_version: 2.6.6
|
|
115
115
|
signing_key:
|
|
116
116
|
specification_version: 4
|
|
117
117
|
summary: Sensu Plugins
|