sensu-plugins-edgelab 1.10.2 → 1.10.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 +4 -4
- data/bin/check-rabbitmq-queues-synchronised.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a82c42fb8be37b72cc7fbd4faa96ee607b34a54
|
|
4
|
+
data.tar.gz: c4cc209effa6992adef23b68630b898f3013d0cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bfffa17dffaedc3bf59e3295a14cd29c8246773d57cbaedf7865eeba4a77f8e7f427685a04312998df8869f0d9f992ed2abde530a5406082d675c77652227b6
|
|
7
|
+
data.tar.gz: d079e587377d35eb515d7be653f94cd5fccd5ecb6c9d5e29165d9ad31adc029ee0567fd22866783d8330101057307a3c2f1f769f18ed15c8a26007ed9999136f
|
|
@@ -37,12 +37,13 @@ class CheckRabbitMQQueuesSynchronised < Sensu::Plugin::RabbitMQ::Check
|
|
|
37
37
|
queues = get_queues config
|
|
38
38
|
|
|
39
39
|
queues.each do |q|
|
|
40
|
+
next unless q.key?("slave_nodes")
|
|
41
|
+
|
|
40
42
|
nb_slaves = q['slave_nodes'].count
|
|
41
|
-
unless nb_slaves
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
end
|
|
43
|
+
next unless nb_slaves != 0
|
|
44
|
+
unsynchronised = nb_slaves - q['synchronised_slave_nodes'].count
|
|
45
|
+
if unsynchronised != 0
|
|
46
|
+
@crit << "#{q['name']}: #{unsynchronised} unsynchronised slave(s)"
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
if @crit.empty?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-edgelab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edgelab
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|