sensu-plugin 1.4.2 → 1.4.3

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: a5adc588001989a4c8089f311cdfe7410b372840
4
- data.tar.gz: fdea6c65285174a18377ada8506c92a51cd3a134
3
+ metadata.gz: 17743fd5936eb4475ead28bb8ad54cdae4717fd9
4
+ data.tar.gz: b64587bb73c77055c3380d261e6c1ce9da4a9328
5
5
  SHA512:
6
- metadata.gz: 1496be0ebe4b322b1a55f1f3071f1ca73ce0b1c7a8ad5ceab0f5d365774a11bcb2bcf31b322f73b5ac2fcf0cd03181813d60c5af009669aeedc8d3ac0db6bf56
7
- data.tar.gz: 2039d12de7d10203e951d23829b5fb2cde18d5da3b2dde019e56a66337a9599f83cc4ae69e4fb587c9ab848eee4361b205671f369a751f3718d254f2eb81ef7e
6
+ metadata.gz: e01ded70b64dcca3a37098105692e7cc2e7e0a9c0abd4418dd51878bd29c6bc4944a6c54b128ab21edfdc4793622e11fede961173cf80960fba232fe743f60c2
7
+ data.tar.gz: dbc1761185f3ebe493f155821352f9a70001a154f511db4216883d9832e943d3be5f8133cedbe9c1b4702d1e9055997ac928ef12ad1046820c059ac465fc0446
@@ -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, '/event/' + client + '/' + check).code == '200'
204
+ api_request(:GET, '/events/' + client + '/' + check).code == '200'
205
205
  end
206
206
 
207
207
  def filter_dependencies
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  module Plugin
3
- VERSION = "1.4.2"
3
+ VERSION = "1.4.3"
4
4
  EXIT_CODES = {
5
5
  'OK' => 0,
6
6
  'WARNING' => 1,
@@ -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.2
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-08-08 00:00:00.000000000 Z
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.5.1
114
+ rubygems_version: 2.6.6
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Sensu Plugins