sensu-plugins-kafka 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/check-topics-name.rb +2 -2
- data/lib/sensu-plugins-kafka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc9f1039deb9b9e2c71f8fafef1d007bc663aaa
|
4
|
+
data.tar.gz: de870e3ae5df767dfdc06be40788cd68bbb89245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 883abb9b62f87035c569bdc7a289416b52d4324b95bd0893a63e2cf9018270ba30497b9f01da4bf1a111886c3e798636874f2002d255710fb17a23fe920e3f0b
|
7
|
+
data.tar.gz: f4545b5b05a2464310dbe6966fb9247937c45c615ff7d6df3463eb2c47f374037196828c74e63d6406b738118bcec131b5a0fb413c3e5ae73502f6cc9d20b72e
|
data/CHANGELOG.md
CHANGED
data/bin/check-topics-name.rb
CHANGED
@@ -50,8 +50,8 @@ class TopicsCheck < Sensu::Plugin::Check::CLI
|
|
50
50
|
|
51
51
|
topics = z.get_children(path: '/brokers/topics')[:children].sort
|
52
52
|
|
53
|
-
critical "Topics '#{config[:name] - topics}' not found"
|
54
|
-
critical "Topics '#{topics - config[:name]}' not checked"
|
53
|
+
critical "Topics '#{config[:name] - topics}' not found" unless (config[:name] - topics).empty?
|
54
|
+
critical "Topics '#{topics - config[:name]}' not checked" unless (topics - config[:name]).empty?
|
55
55
|
|
56
56
|
ok
|
57
57
|
rescue => e
|