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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-consul-servers.rb +2 -2
- data/lib/sensu-plugins-consul/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34c62d8ff6b839434406908838a9069edf8f339c
|
|
4
|
+
data.tar.gz: 5c9deb2475037e36c4cacf0b212eb11624a25449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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��r0fP�g08�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
|
data/bin/check-consul-servers.rb
CHANGED
|
@@ -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
|
|
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'
|
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.
|
|
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-
|
|
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
|