sensu-plugins-chrony 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5c52e1cf5df506dd5cfb30502ba190b8c97426fc
4
- data.tar.gz: 2393f9eb54485903e6509feaa3a64ba5dd08501b
2
+ SHA256:
3
+ metadata.gz: ba5046a0295e599cbf2f599430a6dd998ad8aed05b38e54316676080104545fc
4
+ data.tar.gz: 07ca576f1543127782f195c9598b61a652aff40aca882263dd715e88742684ab
5
5
  SHA512:
6
- metadata.gz: b4db8201cbe5ee253c874ba5b7b68a660877d92a9a11f65bfa4980f872365a445128a1e3fd64af1ffb9e912c49db2135b9e72b8802a5efbc11d5b2a7192c2274
7
- data.tar.gz: a23e33888e4c5f321f7784911fa161db0e08688aa2e5b4de2786452ab564f104ea7391494b8bda70f872322632016903c6b95a8d3ca5b87d09ca975e414e7746
6
+ metadata.gz: 2cb5a94bbeaf099fdf25d4af7569b72d8d4d92da1fbcc2834636bce42904ad63a1d1be878360f11a1e2582d3fc9c8975a62a14c5dad74c897df43efc55ebb144
7
+ data.tar.gz: d8d175a57eb778ba899d5b1db4b920736d8d4a1e10b8569e71e87fad8f47bb151bd2edcd25685ab48054754396dcc899f3da6d25beaa767e77a117488aea18dc
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+
9
+ ## [1.0.1] - 2018-05-03
10
+ ### Fixed
11
+ - Fixes "undefined method `empty?"` (@jwatroba)
12
+
8
13
  ## [1.0.0] - 2018-01-04
9
14
  ### Breaking Change
10
15
  - remove ruby < 2.0 support (@majormoses)
@@ -57,8 +62,9 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
57
62
  ### Added
58
63
  - Initial release
59
64
 
60
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.0...HEAD
61
- [1.0.2]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.10...1.0.0
65
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.1...HEAD
66
+ [1.0.1]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/1.0.0...1.0.1
67
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.10...1.0.0
62
68
  [0.0.10]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.9...0.0.10
63
69
  [0.0.9]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.8...0.0.9
64
70
  [0.0.8]: https://github.com/sensu-plugins/sensu-plugins-ntp/compare/0.0.7...0.0.8
@@ -41,7 +41,7 @@ class ChronyMetrics < Sensu::Plugin::Metric::CLI::Graphite
41
41
  config[:scheme] = config[:host]
42
42
  end
43
43
 
44
- chronystats = chronystats
44
+ chronystats = read_chronystats
45
45
  critical "Failed to get chronycstats from #{config[:host]}" if chronystats.empty?
46
46
  metrics = {
47
47
  config[:scheme] => chronystats
@@ -54,7 +54,7 @@ class ChronyMetrics < Sensu::Plugin::Metric::CLI::Graphite
54
54
  ok
55
55
  end
56
56
 
57
- def chronystats
57
+ def read_chronystats
58
58
  num_val_pattern = /^[-+]?\d+(\.\d+)?\s/
59
59
 
60
60
  `chronyc tracking`.each_line.each_with_object({}) do |line, hash|
@@ -2,7 +2,7 @@ module SensuPluginsChrony
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-chrony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-04 00:00:00.000000000 Z
12
+ date: 2018-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -128,8 +128,8 @@ email:
128
128
  - "<matteo.cerutti@hotmail.co.uk>"
129
129
  - "<sensu-users@googlegroups.com>"
130
130
  executables:
131
- - metrics-chrony.rb
132
131
  - check-chrony.rb
132
+ - metrics-chrony.rb
133
133
  extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project:
169
- rubygems_version: 2.5.2.1
169
+ rubygems_version: 2.7.6
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Sensu plugins for monitoring Chrony NTP