sensu-plugins-kafka 0.2.0 → 0.2.1

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: d1b799c7bf8d17a7870c97275bb99b07407570a8
4
- data.tar.gz: b7b104f9ff24fef9fd427d5181b2aed90076cdd0
3
+ metadata.gz: 10e9d48ba8a90c446cc5ba9b82d027e6fb55ddfc
4
+ data.tar.gz: bdd9251b41653a0a990a68b199bac4aba92b53ce
5
5
  SHA512:
6
- metadata.gz: a2ea96c76830fbe78f8941219bf5bff01430a57513157dabed2b50f9c25dc58802cf8f02f5415e7db88e202399d5df3b70e2e12820543f63aa05606a4be93955
7
- data.tar.gz: 7788b54b1238ce65d43928175a9675a4b35fa0bb9306eae4e1bd2a964586e271f0cfc2f2bfda4caccce14be5e598678258a72037f4e029359452ed3f08b03dba
6
+ metadata.gz: 6227b504aeaccb43e9ae87bba56e1f86508d2376c76022d1ee20c0237c762aad8a74fdcfc09923ef7625b72edadbb959fa02b3269810e5e64e79982a9847a9f5
7
+ data.tar.gz: 78da58aad700bda5ad6a8e656d5451360188303d0cd6e2b93fcb8f4ea1efb32f83c8f1887086d37e217ce14708a961da97c7d633ba70d9e848bc51948062b3c4
data/bin/check-topic.rb CHANGED
@@ -35,19 +35,21 @@ class TopicsCheck < Sensu::Plugin::Check::CLI
35
35
  description: 'ZooKeeper connect string (host:port,..)',
36
36
  short: '-z ZOOKEEPER',
37
37
  long: '--zookeeper ZOOKEEPER',
38
- default: 'localhost:2181'
38
+ default: 'localhost:2181',
39
+ required: true
39
40
 
40
41
  option :name,
41
42
  description: 'Topic name',
42
43
  short: '-n TOPIC_NAME',
43
- long: '--name TOPIC_NAME'
44
+ long: '--name TOPIC_NAME',
45
+ required: true
44
46
 
45
47
  def run
46
48
  z = Zookeeper.new(config[:zookeeper])
47
49
 
48
50
  live_topics = z.get_children(path: '/brokers/topics')[:children].sort
49
51
 
50
- critical "#{topic[:name]} not found" unless live_topics.include? topic[:name]
52
+ critical "#{config[:name]} not found" unless live_topics.include? config[:name]
51
53
 
52
54
  ok
53
55
  rescue => e
@@ -6,7 +6,7 @@ module SensuPluginsKafka
6
6
  module Version
7
7
  MAJOR = 0
8
8
  MINOR = 2
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors