sensu-plugins-http 2.6.0 → 2.7.0
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 +5 -5
- data/CHANGELOG.md +10 -2
- data/bin/check-http.rb +10 -1
- data/lib/sensu-plugins-http/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 576cbe4ae1e4dcc1a7864d575ec1172c03623b16aae6921a6f0943a78604bf1e
|
4
|
+
data.tar.gz: a13b3c64d956fde1b9282eb7e2a8e0836f0d76b29d7946148e66ac38872f0cc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc086183391592a1076abc83971c8e7f115b51228452c8b7e85619301bf4dc41e67b84f7001a66d2c039623865cd782c7b5e4e9ff4a9817612ddfda19a707631
|
7
|
+
data.tar.gz: 2310241cd60b8586ec0c4857a244fa1cd34dbbb8883f661c69746b592f7c4b708e31ee6e122001f41d6652d352228cdd2a0c721c48e49535f49c6a8f7c900be3
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
-
This CHANGELOG follows the format listed
|
4
|
+
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.7.0] - 2018-02-15
|
9
|
+
### Added
|
10
|
+
- `check-http`: Added ability to use username and password in proxy url (@mclarkson)
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- updated changelog location guidelines (@majormoses)
|
14
|
+
|
8
15
|
## [2.6.0] - 2017-07-31
|
9
16
|
### Added
|
10
17
|
- ruby 2.4 testing (@majormoses)
|
@@ -151,7 +158,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
151
158
|
### Added
|
152
159
|
- Initial release
|
153
160
|
|
154
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.
|
161
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.7.0...HEAD
|
162
|
+
[2.7.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.6.0...2.7.0
|
155
163
|
[2.6.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.5.0...2.6.0
|
156
164
|
[2.5.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.4.0...2.5.0
|
157
165
|
[2.4.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.3.0...2.4.0
|
data/bin/check-http.rb
CHANGED
@@ -28,6 +28,10 @@
|
|
28
28
|
# Use a proxy to check a URL
|
29
29
|
# check-http.rb -u https://www.google.com --proxy-url http://my.proxy.com:3128
|
30
30
|
#
|
31
|
+
# Use a proxy with username and password to check a URL
|
32
|
+
# NOTE: Use 'check token substition' to avoid credentials leakage!
|
33
|
+
# check-http.rb -u https://www.google.com --proxy-url http://a_user:a_pass@my.proxy.com:3128
|
34
|
+
#
|
31
35
|
# Check something with needing to set multiple headers
|
32
36
|
# check-http.rb -u https://www.google.com --header 'Origin: ma.local.box, SomeRandomHeader: foo'
|
33
37
|
#
|
@@ -40,6 +44,7 @@
|
|
40
44
|
# Updated by Lewis Preson 2012 to accept basic auth credentials
|
41
45
|
# Updated by SweetSpot 2012 to require specified redirect
|
42
46
|
# Updated by Chris Armstrong 2013 to accept multiple headers
|
47
|
+
# Updated by Mark Clarkson 2018 to accept proxy auth credentials
|
43
48
|
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
44
49
|
# for details.
|
45
50
|
#
|
@@ -255,7 +260,11 @@ class CheckHttp < Sensu::Plugin::Check::CLI
|
|
255
260
|
if proxy_uri.host.nil?
|
256
261
|
unknown 'Invalid proxy url specified'
|
257
262
|
end
|
258
|
-
http =
|
263
|
+
http = if proxy_uri.user && proxy_uri.password
|
264
|
+
Net::HTTP.new(config[:host], config[:port], proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
|
265
|
+
else
|
266
|
+
Net::HTTP.new(config[:host], config[:port], proxy_uri.host, proxy_uri.port)
|
267
|
+
end
|
259
268
|
else
|
260
269
|
http = Net::HTTP.new(config[:host], config[:port])
|
261
270
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -255,15 +255,15 @@ description: |-
|
|
255
255
|
SSL expiry, and metrics via `curl`.
|
256
256
|
email: "<sensu-users@googlegroups.com>"
|
257
257
|
executables:
|
258
|
-
-
|
258
|
+
- check-head-redirect.rb
|
259
|
+
- metrics-http-json.rb
|
260
|
+
- check-last-modified.rb
|
261
|
+
- check-http.rb
|
259
262
|
- metrics-curl.rb
|
260
263
|
- check-http-cors.rb
|
264
|
+
- metrics-http-json-deep.rb
|
261
265
|
- check-https-cert.rb
|
262
|
-
- check-last-modified.rb
|
263
|
-
- check-http.rb
|
264
266
|
- check-http-json.rb
|
265
|
-
- metrics-http-json.rb
|
266
|
-
- check-head-redirect.rb
|
267
267
|
extensions: []
|
268
268
|
extra_rdoc_files: []
|
269
269
|
files:
|
@@ -309,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
309
309
|
version: '0'
|
310
310
|
requirements: []
|
311
311
|
rubyforge_project:
|
312
|
-
rubygems_version: 2.
|
312
|
+
rubygems_version: 2.7.5
|
313
313
|
signing_key:
|
314
314
|
specification_version: 4
|
315
315
|
summary: Sensu plugins for various http monitors and metrics
|