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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fac8d66e08abbe91447d406563b06888e1c97b8
4
- data.tar.gz: 7ae7f3a436bc7292db84d5297450e654a19139f3
3
+ metadata.gz: 15553d4397ef6d1b8e37f94afc8c0982b44bb7fb
4
+ data.tar.gz: 096c0f8312b86330ef31db641a1c43876ee166c9
5
5
  SHA512:
6
- metadata.gz: ccd866fbd7d2a5d71723170e936ef0e6dde9cee435f42015597d07678dfe1887e4c009d76e43063a8c13f27b6ef5ce147e23b9669b39a8133c99c01abaa6fd27
7
- data.tar.gz: fb1674c2b7025ffcfbd968fca67cc61847bab7dd38641ebaa1a20f548e16b58f57233fa9c145489a6ac6720f5c6e5ea31b3e88ddfd0e1b35aacd48a2fd83966b
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.2.0...HEAD
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]
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsHAProxy
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.2.0
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-07-26 00:00:00.000000000 Z
11
+ date: 2017-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin