sensu-plugins-network-checks 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b5be61036fae51f4ec606df7c8396fd34103df2d17639b26f595ee0cffea692
4
- data.tar.gz: d86c6b6e05e92a26f4b49580f6764275e042b64556b62571dc41f6aabb4ac694
3
+ metadata.gz: b1752cb265f34f1f3b1d614f47c4202e4aa773788b38e93d5bcc3e417c66957f
4
+ data.tar.gz: bc20403de1b70657fbe3f869e5a1e64397636c29e45348bc2bcdb6b67005d348
5
5
  SHA512:
6
- metadata.gz: 570bd032e7930a82eb521ac3487d0e34fbca2ec4326e1df157756c14ee488c3b75a5955c3e58fb44786742be97d1c0782e76adcecf95844ee1b2bcdd5571a385
7
- data.tar.gz: a470d545a496edacc4e1ce1f6fc0c1582883951acbbb3d7a8dfa2fd54040ff0db696d35848ac343ac18491ab70af9b81020409a043a3bd22f57925583a475a13
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.0...HEAD
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
- unless whois_result.expires_on.nil?
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
@@ -2,7 +2,7 @@ module SensuPluginsNetworkChecks
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.0
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: 2017-11-04 00:00:00.000000000 Z
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.1
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