sensu-plugins-sensu 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-stale-results.rb +8 -1
- data/lib/sensu-plugins-sensu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85d6a4672fdf2f9b55f3a7c61e4bd1c7183393e0f57512fa2d98e40f7731bd35
|
4
|
+
data.tar.gz: c1bc51e0696e66069bb100d17576e254ff7ad8f2316e9f0379c444f9088aa386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d71b2ab216f2a9e5172798d035a6d52989faa4902d0d589ebe9c0ecb9fe2c8fee559e05c346e5aff37712bb765749530e70d6176255aa029c9cdc89447f9c0
|
7
|
+
data.tar.gz: c6fa233ad03d3bb88d7908e5698c124f387a47426b42fd6cbe6f68fc23bac1ee868f0543bd0172ea13b0bf60419c0bbc6a1faa19900d92e2b589f99db3c4935e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [4.2.0] - 2018-09-19
|
10
|
+
### Added
|
11
|
+
- check-stale-results.rb: added an option to pass read_timeout for http request.
|
12
|
+
|
9
13
|
## [4.1.0] - 2018-08-28
|
10
14
|
### Changed
|
11
15
|
- bumped dependency of `sensu-plugin` to `~> 2.6` to provide paginated HTTP get (@cwjohnston)
|
@@ -149,7 +153,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
149
153
|
### Added
|
150
154
|
- initial release
|
151
155
|
|
152
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.
|
156
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.2.0...HEAD
|
157
|
+
[4.2.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.1.0...4.2.0
|
153
158
|
[4.1.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.0.0...4.1.0
|
154
159
|
[4.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/3.0.0...4.0.0
|
155
160
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/2.5.0...3.0.0
|
data/bin/check-stale-results.rb
CHANGED
@@ -45,6 +45,13 @@ class CheckStaleResults < Sensu::Plugin::Check::CLI
|
|
45
45
|
proc: proc(&:to_i),
|
46
46
|
default: nil
|
47
47
|
|
48
|
+
option :timeout,
|
49
|
+
description: 'read timeout for http request',
|
50
|
+
short: '-t <TIME>',
|
51
|
+
long: '--timeout <TIME>',
|
52
|
+
proc: proc(&:to_i),
|
53
|
+
default: 60
|
54
|
+
|
48
55
|
def initialize
|
49
56
|
super
|
50
57
|
|
@@ -78,7 +85,7 @@ class CheckStaleResults < Sensu::Plugin::Check::CLI
|
|
78
85
|
HEREDOC
|
79
86
|
end
|
80
87
|
uri = get_uri(path)
|
81
|
-
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
|
88
|
+
Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https', read_timeout: config[:timeout]) do |http|
|
82
89
|
request = net_http_req_class(method).new(path)
|
83
90
|
if settings['api']['user'] && settings['api']['password']
|
84
91
|
request.basic_auth(settings['api']['user'], settings['api']['password'])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.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: 2018-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic_duration
|