sensu-plugins-dns 2.0.0 → 2.1.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
  SHA256:
3
- metadata.gz: 9baf92765cfd62035a6b839ac3ad7675ce33efa5495882da84dc22337bf5cb36
4
- data.tar.gz: 61babc44dc892281dbcff81dadb790c97bb6b4d9e5a615910603cc21037246f4
3
+ metadata.gz: c9bcbe3f1367269b85807e4ae461d526a9a0f3f6629a612c847155497d4f34be
4
+ data.tar.gz: 43a2da48e06b7fc29f9d84822bd613e935a4c589cffee87c8a108f6a01da349d
5
5
  SHA512:
6
- metadata.gz: a332c8c0cd2bf7b0cad5e3ed88cece9e7a0955132ddf34dfdedae7ff3c8f286b9faeaa1d429aa9a5f5f16c253ca14a6247e23a68faa3922dee3eb9b99dd984df
7
- data.tar.gz: a65a420f79058d667b07fe78ff3bac32d20507329c18ad1fc23fbcbdd8f5e7d9ce17a5ede27cbfad1adddc884c0976e11c70e53988f0e6ffb18287643514d44f
6
+ metadata.gz: 0ee234e23377ff04fdd7a401ac4fc9e0e27d987201769687bd1cbfae2798abf597245f048f0fcb4f9af5c816f0402f3b8f01fc903e4821bfc1d556931416a4f4
7
+ data.tar.gz: 4a72bd71ee96df01a2f732d0e519adddb3cae956d9f7bf04614d21ed1c7524026af9c0cd167741167cce45acf3ce7d563973772b0e5db7c73c0047fb5093db79
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.1.0] - 2018-05-30
9
+ ### Changed
10
+ - check-dns-zone.rb: `--timeout` is now also applied on the whois lookup (@eberkut)
11
+
8
12
  ## [2.0.0] - 03-29-2018
9
13
  ### Breaking Changes
10
14
  - Dropping ruby `< 2.2` support (@yuri-zubov)
@@ -91,7 +95,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
91
95
  ### Changed
92
96
  - removed cruft from /lib
93
97
 
94
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/2.0.0...HEAD
98
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/2.1.0...HEAD
99
+ [2.1.0]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/2.0.0...2.1.0
95
100
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/1.4.0...2.0.0
96
101
  [1.4.0]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/1.3.0...1.4.0
97
102
  [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-dns/compare/1.2.1...1.3.0
@@ -71,7 +71,8 @@ class DNSZone < Sensu::Plugin::Check::CLI
71
71
  def check_whois(entries)
72
72
  errors = []
73
73
  success = []
74
- record = Whois.whois(config[:domain])
74
+ client = Whois::Client.new(timeout: config[:timeout])
75
+ record = client.lookup(config[:domain])
75
76
  parser = record.parser
76
77
  additional_text = "(whois #{parser.nameservers.map(&:name)}) (dig #{entries})"
77
78
  if Set.new(parser.nameservers.map(&:name)) == Set.new(entries)
@@ -3,7 +3,7 @@
3
3
  module SensuPluginsDNS
4
4
  module Version
5
5
  MAJOR = 2
6
- MINOR = -
6
+ MINOR = 1
7
7
  PATCH = 0
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.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-03-29 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  version: '0'
306
306
  requirements: []
307
307
  rubyforge_project:
308
- rubygems_version: 2.7.6
308
+ rubygems_version: 2.7.7
309
309
  signing_key:
310
310
  specification_version: 4
311
311
  summary: Sensu plugins for dns