sensu-plugins-chrony 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +8 -2
- data/bin/metrics-chrony.rb +2 -2
- data/lib/sensu-plugins-chrony/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ba5046a0295e599cbf2f599430a6dd998ad8aed05b38e54316676080104545fc
|
4
|
+
data.tar.gz: 07ca576f1543127782f195c9598b61a652aff40aca882263dd715e88742684ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
61
|
-
[1.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
|
data/bin/metrics-chrony.rb
CHANGED
@@ -41,7 +41,7 @@ class ChronyMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
41
41
|
config[:scheme] = config[:host]
|
42
42
|
end
|
43
43
|
|
44
|
-
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
|
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|
|
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.
|
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-
|
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.
|
169
|
+
rubygems_version: 2.7.6
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Sensu plugins for monitoring Chrony NTP
|