sensu-plugins-ntp 1.0.1 → 1.0.2

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
- SHA1:
3
- metadata.gz: ad4217c7774247a2a1631a5b74f68e10af5bbf6d
4
- data.tar.gz: eccd843778e5f946570204006699f1c23b8b4fe1
2
+ SHA256:
3
+ metadata.gz: 047b93a4dec2f4dc7cb9cfbf946d3c5bb3d7fa107474f24d2c435ab430d827c2
4
+ data.tar.gz: 347187a0f38d53efee2e8014caeaed8a6814a7fc819d1c66e99b96f1009cb3cb
5
5
  SHA512:
6
- metadata.gz: 9aec9e0f7b54a036bb3f61adcd5e2c6b40beb54ed6bc9884dadefa17144b7a3c45dd71d884b26da1fa3de9da2c3be6e9e373e336d008d8cce234a20df6311ef6
7
- data.tar.gz: 6a9477ae6b646a230dd0c8b6224005ee65cadb6ba58d1649d17fbec81d278833d9dfd01c2a177ceaf7e43feddf05136c584f8233f5e09c692541a26b76f05107
6
+ metadata.gz: 1ec97ce97f37d10078f864a277fd7567d003dc3961adbecbbf979862eef5fdd1bc156ca1529db0d98501f5ae8f9462ceca1a3d6ea90312a4a8179c1071035783
7
+ data.tar.gz: 85f73b9d0e6048ea6a9688dd115f5d0071368c70481d4602dbf86acb44e159a2066f991fb825913636dae0fb08cbe34d75aa3d0825596a345223baddabe5b22c
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format listed at [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.0.2] - 2018-01-03
9
+ ## Fixed
10
+ - check-ntp.rb: fix timeout issue bu using loopback (@mdzidic)
11
+
12
+ ### Added
13
+ - Ruby 2.4.1 testing
14
+
15
+ ### Changed
16
+ - update changelog guidelines location (@majormoses)
17
+
8
18
  ## [1.0.1] - 2016-12-30
9
19
  ### Fixed
10
20
  - Fix interpretation of the leap field in check-ntp.rb (@corro)
@@ -42,7 +52,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
42
52
  ### Added
43
53
  - initial release
44
54
 
45
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.1...HEAD
55
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.2...HEAD
56
+ [1.0.2]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.1...1.0.2
46
57
  [1.0.1]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.0...1.0.1
47
58
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.4...1.0.0
48
59
  [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.3...0.0.4
data/bin/check-ntp.rb CHANGED
@@ -59,10 +59,10 @@ class CheckNTP < Sensu::Plugin::Check::CLI
59
59
 
60
60
  def run
61
61
  begin
62
- output = `ntpq -c "rv 0 stratum,offset"`.split("\n").find { |line| line.start_with?('stratum') }
62
+ output = `ntpq -c "rv 0 stratum,offset" 127.0.0.1`.split("\n").find { |line| line.start_with?('stratum') }
63
63
  stratum = output.split(',')[0].split('=')[1].strip.to_i
64
64
  offset = output.split(',')[1].split('=')[1].strip.to_f
65
- source_field_status = config[:unsynced_status] == 'ok' ? 6 : /status=[0-9a-f]([0-9])[0-9a-f]{2}/.match(`ntpq -c "rv 0"`)[1].to_i
65
+ source_field_status = config[:unsynced_status] == 'ok' ? 6 : /status=[0-9a-f]([0-9])[0-9a-f]{2}/.match(`ntpq -c "rv 0" 127.0.0.1`)[1].to_i
66
66
  rescue
67
67
  unknown 'NTP command Failed'
68
68
  end
@@ -2,7 +2,7 @@ module SensuPluginsNtp
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
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-ntp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2016-12-31 00:00:00.000000000 Z
11
+ date: 2018-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.4.5
199
+ rubygems_version: 2.7.4
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: Sensu plugins for ntp