sensu-plugins-chrony 0.0.2 → 0.0.3

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
2
  SHA1:
3
- metadata.gz: ca7e674e92d35fb20eff15a72916e0dfc9f502da
4
- data.tar.gz: 2f637e5f21740dbdbcce7440ce069bbb589ca1be
3
+ metadata.gz: 588fd10b6c0a2e1c924718b25ef605cec5055c73
4
+ data.tar.gz: 832570b5d61689ee36981c76488b266bc6988784
5
5
  SHA512:
6
- metadata.gz: 9260b39353b206679bb33524365f88f16e1b1aec18741676edb1ed6c945f1cde52b3518fc3b7579e8da543f88cca2647899a0a33eaa7392f88ca43200c0e96e6
7
- data.tar.gz: df3c227d8c805ca4817d71f56d81418ba658630e726e4e9301a26bcc4ab4fd02bb03491509fdfcad35daaa85297b1602099d7cfe4675650af648e40c5f0947fe
6
+ metadata.gz: 2e36105f9debdd0fba525524a92f488b486a8fbf8e20f6521b351814068697c319676b6c2e17e536dc3a1773399144a9cce1e778ff73c8dc7640e3116d9ef3f7
7
+ data.tar.gz: 44f160369e84bf568f96c8a8cc6484746c66ba634b01deec56178cf82779870b3e52e326509007782fa980b367906a2e8f07f867faa1361bca33991b56969dfa
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ## [0.0.3] - 2015-12-28
9
+ ### Added
10
+ - Rounding offset
11
+
8
12
  ## [0.0.2] - 2015-12-28
9
13
  ### Added
10
14
  - Casting thresholds to float
data/bin/check-chrony.rb CHANGED
@@ -115,7 +115,7 @@ class CheckChrony < Sensu::Plugin::Check::CLI
115
115
 
116
116
  if offset
117
117
  check_name = "chrony-offset"
118
- msg = "NTP offset is #{offset}ms"
118
+ msg = "NTP offset is #{offset.round(4)}ms"
119
119
 
120
120
  if offset >= config[:crit_offset] or offset <= -config[:crit_offset]
121
121
  msg += ", expected > -#{config[:crit_offset]} and < #{config[:crit_offset]}"
@@ -2,7 +2,7 @@ module SensuPluginsChrony
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
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: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti