sensu-plugins-network-checks 2.1.0 → 2.1.1
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 +5 -1
- data/bin/check-whois-domain-expiration-multi.rb +3 -1
- data/lib/sensu-plugins-network-checks/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: b1752cb265f34f1f3b1d614f47c4202e4aa773788b38e93d5bcc3e417c66957f
|
|
4
|
+
data.tar.gz: bc20403de1b70657fbe3f869e5a1e64397636c29e45348bc2bcdb6b67005d348
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 913a0d7962d87d752be161ab10c4eb03da999d672f5e329009a5ddee398a61e458e7e656d1ab688c8a3c2c38d80834b9fba70cbe9da3e03007e64b18dc4acf36
|
|
7
|
+
data.tar.gz: 666c2515c48bb940233629deba677d1ff367899cc0da83fd930ece618170c81d6d91b6bae22988613be2852f1b5be9046b736f56d5999646f246f164264641ee
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [2.1.1] - 2018-01-06
|
|
9
|
+
### Fixed
|
|
10
|
+
- check-whois-domain-expiration-multi.rb: report a `critical` error on a domain that it gets back an empty expires_on. (@edgan)
|
|
8
11
|
|
|
9
12
|
## [2.1.0] - 2017-11-03
|
|
10
13
|
### Added
|
|
@@ -184,7 +187,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
|
184
187
|
|
|
185
188
|
* initial release, same as community repo
|
|
186
189
|
|
|
187
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.1.
|
|
190
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.1.1...HEAD
|
|
191
|
+
[2.1.1]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.1.0...2.1.1
|
|
188
192
|
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.0.1...2.1.0
|
|
189
193
|
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/2.0.0...2.0.1
|
|
190
194
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-network-checks/compare/1.2.0...2.0.0
|
|
@@ -93,7 +93,9 @@ class WhoisDomainExpirationCheck < Sensu::Plugin::Check::CLI
|
|
|
93
93
|
tries < max_retries ? retry : next
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
if whois_result.expires_on.nil?
|
|
97
|
+
results['critical'][domain] = domain_result
|
|
98
|
+
else
|
|
97
99
|
domain_result = (DateTime.parse(whois_result.expires_on.to_s) - DateTime.now).to_i
|
|
98
100
|
if domain_result <= critical_days
|
|
99
101
|
results['critical'][domain] = domain_result
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-network-checks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
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:
|
|
11
|
+
date: 2018-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dnsbl-client
|
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
315
315
|
version: '0'
|
|
316
316
|
requirements: []
|
|
317
317
|
rubyforge_project:
|
|
318
|
-
rubygems_version: 2.7.
|
|
318
|
+
rubygems_version: 2.7.4
|
|
319
319
|
signing_key:
|
|
320
320
|
specification_version: 4
|
|
321
321
|
summary: Sensu plugins for checking network hardware, connections, and data
|