sensu-plugins-chrony 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: a7bd01527c697178934ed9c59a6df46b302fa1b5
4
- data.tar.gz: 145cc7031f9698f76766964ea86d875b422e5164
3
+ metadata.gz: b1dba0384b7b0f850b7a3cb9a2c4ae3973c60cad
4
+ data.tar.gz: 304698688161bbf3f2c9271fe0e971fd0833c56b
5
5
  SHA512:
6
- metadata.gz: 2741c39c02ffe360b7fcf609b6efae4f8b64dbd65de6e151b49f918bf86f5353b49f8c6b32fbeb99262f0538209e08fe26fdf8f95ab6c9dee8a9a6e1a18f60da
7
- data.tar.gz: d9bf4693647701a191d2af2fd29ca1708a31ea2e2ff8665c9e80393bdbe6e05325ad22106dbab335faaa37f4810dd378bad49f043470b282c31f8cec16478d38
6
+ metadata.gz: 8a04459de83f978fff3111586efb8d271866f1b069d6060a3ad2dd277e8acd3dac61dd117e7183c08b41ad3b9e11939252e74a74159541f7df481ff1617419ea
7
+ data.tar.gz: 5fe56a626723df140aba66ec282e79af1c1a701d4df5c5497f4dc4412f858800e81477e35935901e683436eedcdc732cb0a62a720ecf15eaac8cf12e50b39c46
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.6] - 2016-01-18
9
+ ### Added
10
+ - last offset regex should match both - and +
11
+
8
12
  ## [0.0.5] - 2016-01-14
9
13
  ### Added
10
14
  - Added --handlers command line option
data/bin/check-chrony.rb CHANGED
@@ -94,7 +94,7 @@ class CheckChrony < Sensu::Plugin::Check::CLI
94
94
  case line.downcase
95
95
  when /^stratum\s*:\s*(\d+)$/
96
96
  stratum = $1.to_i
97
- when /^last offset\s*:\s*(-?[.\d]+)\s*seconds$/
97
+ when /^last offset\s*:\s*([-+]?[.\d]+)\s*seconds$/
98
98
  # convert from seconds to milliseconds
99
99
  offset = $1.to_f * 1000
100
100
  when /^leap status\s*:\s*(.*?)$/
@@ -2,7 +2,7 @@ module SensuPluginsChrony
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 5
5
+ PATCH = 6
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-chrony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin