sensu-plugins-haproxy 1.2.0 → 1.3.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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-haproxy.rb +6 -1
- data/lib/sensu-plugins-haproxy/version.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: 15553d4397ef6d1b8e37f94afc8c0982b44bb7fb
|
|
4
|
+
data.tar.gz: 096c0f8312b86330ef31db641a1c43876ee166c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d27c564bcaea1a9fe683bc4886e18cf893909b2f8c2739020dab01f5531172b30895ab23d2436b645dc5efddee02419ddaaafc92b0e95f476234b3322782ebf
|
|
7
|
+
data.tar.gz: fbb1848bd2232b9954b362a3d12520eb0951c27756c821569f8412ff8d38d4ab1f28ad3f46df96f0c99290b530bdace9fe04dd7e81e09dfe564620b4b74c5e70
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.3.0] - 2017-08-05
|
|
10
|
+
### Added
|
|
11
|
+
- Flag to use SSL in `check-haproxy.rb` (@foozmeat) (@Evesey)
|
|
12
|
+
|
|
9
13
|
## [1.2.0] - 2017-07-25
|
|
10
14
|
### Added
|
|
11
15
|
- Ruby 2.4.1 testing
|
|
@@ -65,7 +69,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
65
69
|
### Added
|
|
66
70
|
- initial release
|
|
67
71
|
|
|
68
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.
|
|
72
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.3.0...HEAD
|
|
73
|
+
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.2.0...1.3.0
|
|
69
74
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.1.0...1.2.0
|
|
70
75
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/1.0.0...1.1.0
|
|
71
76
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-haproxy/compare/0.1.1...1.0.0
|
data/bin/check-haproxy.rb
CHANGED
|
@@ -56,6 +56,11 @@ class CheckHAProxy < Sensu::Plugin::Check::CLI
|
|
|
56
56
|
short: '-p PASSWORD',
|
|
57
57
|
long: '--pass PASSWORD',
|
|
58
58
|
description: 'HAproxy web stats password'
|
|
59
|
+
option :use_ssl,
|
|
60
|
+
description: 'Use SSL to connect to HAproxy web stats',
|
|
61
|
+
long: '--use-ssl',
|
|
62
|
+
boolean: true,
|
|
63
|
+
default: false
|
|
59
64
|
option :warn_percent,
|
|
60
65
|
short: '-w PERCENT',
|
|
61
66
|
boolean: true,
|
|
@@ -201,7 +206,7 @@ class CheckHAProxy < Sensu::Plugin::Check::CLI
|
|
|
201
206
|
out = srv.read
|
|
202
207
|
srv.close
|
|
203
208
|
else
|
|
204
|
-
res = Net::HTTP.start(config[:stats_source], config[:port]) do |http|
|
|
209
|
+
res = Net::HTTP.start(config[:stats_source], config[:port], use_ssl: config[:use_ssl]) do |http|
|
|
205
210
|
req = Net::HTTP::Get.new("/#{config[:path]};csv;norefresh")
|
|
206
211
|
unless config[:username].nil?
|
|
207
212
|
req.basic_auth config[:username], config[:password]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-haproxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.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: 2017-
|
|
11
|
+
date: 2017-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|