sensu-plugins-consul 0.0.5 → 0.0.6

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: 98db577d8684a6cfebd0a2d90f06fc4b9c31d34b
4
- data.tar.gz: 64f8d3904b1cf24aa8fb47ee3a6376a7f45ac405
3
+ metadata.gz: 34c62d8ff6b839434406908838a9069edf8f339c
4
+ data.tar.gz: 5c9deb2475037e36c4cacf0b212eb11624a25449
5
5
  SHA512:
6
- metadata.gz: 667d93350669335d570b7b86cf37643e164be4f1c7f8318a74fee710a75df3fc2565867327ce747c82dffba7110f5083e7a03d2e40b3608e1c438ec7b19f9e11
7
- data.tar.gz: 96b068d475e6d4135d31e266282c7367fb13ab37c38168ea0e7328427e1a5a08316e370f4cb6d94ff7a005e15671c09c22536003207fb2476af004fe1b46d066
6
+ metadata.gz: 47a031c67fec164893b99a67fafef0b3353cad25bc47d6146c034e21bf96cb8e74614cad808b43f33f2c4ab0062b79cb0f58a4ef3e18fc304e8dfa55de0f383b
7
+ data.tar.gz: 82fb703b3e9e9ff3b974f384063a781e92df0947267821b5f0d52a82c2882cbd16b3bcc766588022ffc8837ca4c8870fcf461eb1f9a771bad9c67a619bc4b2a0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,4 +1 @@
1
- ���?��lO�-d-<����r(z��m:G�Ѝ
2
- �Ӌ�B�0uC�Rj�ƽ(a�u� ����O^y� Z�Qى���V}ն^)��c~��φҒ?�M��A�v�p�3jŔ�1���6U��22ජ���q��'K����Q?�X
3
- �C�f�r�q�+
4
- �7+�Zf���,� �,�
1
+ �{ �����;LI*�G Z��P<�P,R�:�����+%�q��r0fPg08�2�!m?�� ط�~ig���hͿŻ�4�`z8�"�)�.���C��vHn���}�Fߚ���G�i�䚫���b��Y����Z�m�,��1fA.W�L֩H��ѝY��V�Ծ �$�i�����.���3T���ْ��=GpIL�R�7�������K�p��E*��g:�i1J��j����l��L� ) `��"���Y��
data/CHANGELOG.md CHANGED
@@ -3,7 +3,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- ## Unreleased
6
+ ## [Unreleased]
7
+ - Nothing
8
+
9
+ ## [0.0.6] - 2015-09-29
10
+ ### Changed
11
+ - Bug fixes for check-consul-servers.rb
7
12
 
8
13
  ## [0.0.5] - 2015-09-28
9
14
  ### Added
@@ -62,9 +62,9 @@ class ConsulStatus < Sensu::Plugin::Check::CLI
62
62
  def run
63
63
  json = RestClient::Resource.new("http://#{config[:server]}:#{config[:port]}/v1/status/peers", timeout: 5).get
64
64
  peers = JSON.parse(json).length.to_i
65
- if peers <= config[:min]
65
+ if peers < config[:min].to_i
66
66
  critical "[#{peers}] peers is below critical threshold of [#{config[:min]}]"
67
- elsif peers != config[:expected]
67
+ elsif peers != config[:expected].to_i
68
68
  warning "[#{peers}] peers is outside of expected count of [#{config[:expected]}]"
69
69
  else
70
70
  ok 'Peers within threshold'
@@ -2,7 +2,7 @@ module SensuPluginsConsul
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-consul
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
  - Sensu Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-09-28 00:00:00.000000000 Z
33
+ date: 2015-09-29 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
metadata.gz.sig CHANGED
Binary file