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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-dns-zone.rb +2 -1
- data/lib/sensu-plugins-dns/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9bcbe3f1367269b85807e4ae461d526a9a0f3f6629a612c847155497d4f34be
|
|
4
|
+
data.tar.gz: 43a2da48e06b7fc29f9d84822bd613e935a4c589cffee87c8a108f6a01da349d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
data/bin/check-dns-zone.rb
CHANGED
|
@@ -71,7 +71,8 @@ class DNSZone < Sensu::Plugin::Check::CLI
|
|
|
71
71
|
def check_whois(entries)
|
|
72
72
|
errors = []
|
|
73
73
|
success = []
|
|
74
|
-
|
|
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)
|
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.
|
|
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-
|
|
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.
|
|
308
|
+
rubygems_version: 2.7.7
|
|
309
309
|
signing_key:
|
|
310
310
|
specification_version: 4
|
|
311
311
|
summary: Sensu plugins for dns
|