sensu-plugins-zookeeper 1.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/bin/check-netty-zookeeper-cluster.rb +0 -1
- data/bin/check-znode.rb +0 -1
- data/bin/check-zookeeper-cluster.rb +0 -1
- data/bin/check-zookeeper-file-descriptors.rb +0 -1
- data/bin/check-zookeeper-latency.rb +0 -1
- data/bin/check-zookeeper-mode.rb +0 -1
- data/bin/check-zookeeper-reqs.rb +0 -1
- data/bin/check-zookeeper-ruok.rb +0 -1
- data/bin/metrics-zookeeper-cluster.rb +8 -2
- data/lib/sensu-plugins-zookeeper/version.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83daae1c3f6dd1333cd43fb1cc7f24fc94082afdce148565716797ab6626da66
|
4
|
+
data.tar.gz: 8e05f1fce9a74cb6ce5872f0fe45cde1e3b879de0a0ef48d296f1c0086ddbdf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c15a4689b39624ebcdf8497dccc303d1be2c352628e1c41c1a1480bc58b256999ac1ac3a7f87e1cdb4ab893c7a06c5359bc22402400f4fe7719f36ae05ebdc
|
7
|
+
data.tar.gz: 759023fede130b8c885f50238b3ef402cf2f050e0cd3da2579a0858e00a51fe570d3f13760a08e6de86e11d4b9e9ac2a891a4da48dca4debfdc27b4d0d9d3ace
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,16 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [2.0.0] - 2018-01-18
|
10
|
+
### Security
|
11
|
+
- updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@thomasriley)
|
12
|
+
|
13
|
+
### Breaking Changes
|
14
|
+
- removed < ruby 2.1 support which was pulled as part of security updates (@thomasriley)
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- Various amendments to comply with Rubocop (@thomasriley)
|
18
|
+
|
9
19
|
## [1.5.0] - 2017-12-06
|
10
20
|
### Added
|
11
21
|
- check-netty-zookeeper-cluster.rb: new script to check if a zookeeper v. 3.5 cluster is OK (@duncaan)
|
@@ -71,7 +81,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
71
81
|
### Added
|
72
82
|
- initial release
|
73
83
|
|
74
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/
|
84
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/2.0.0...HEAD
|
85
|
+
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.5.0...2.0.0
|
75
86
|
[1.5.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.4.0...1.5.0
|
76
87
|
[1.4.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.3.0...1.4.0
|
77
88
|
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.2.0...1.3.0
|
data/bin/check-znode.rb
CHANGED
data/bin/check-zookeeper-mode.rb
CHANGED
data/bin/check-zookeeper-reqs.rb
CHANGED
data/bin/check-zookeeper-ruok.rb
CHANGED
@@ -49,7 +49,10 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
49
49
|
default: 2181,
|
50
50
|
proc: proc(&:to_i)
|
51
51
|
|
52
|
-
def follow_url(uri_str,
|
52
|
+
def follow_url(uri_str,
|
53
|
+
agent = "sensu-plugins-zookeeper/#{SensuPluginsZookeeper::Version::VER_STRING}",
|
54
|
+
max_attempts = 10,
|
55
|
+
timeout = 10)
|
53
56
|
attempts = 0
|
54
57
|
cookie = nil
|
55
58
|
|
@@ -95,6 +98,7 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
95
98
|
|
96
99
|
response
|
97
100
|
end
|
101
|
+
# rubocop:enable Style/CommentedKeyword
|
98
102
|
|
99
103
|
def dotted(*args)
|
100
104
|
args.join('.')
|
@@ -119,7 +123,9 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
119
123
|
timestamp = Time.now.to_i
|
120
124
|
|
121
125
|
json = exhibitor_status
|
122
|
-
|
126
|
+
|
127
|
+
# TODO: Need to shortern this function
|
128
|
+
json.each do |zk| # rubocop:disable Metrics/BlockLength
|
123
129
|
hostname = zk['hostname']
|
124
130
|
response = zk_command(:mntr, hostname, config[:zk_port])
|
125
131
|
metrics = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-zookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -123,33 +123,33 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '3.4'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '3.4'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.51.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.51.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: yard
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
requirements:
|
212
212
|
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: 2.
|
214
|
+
version: 2.1.0
|
215
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
216
|
requirements:
|
217
217
|
- - ">="
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.7.
|
222
|
+
rubygems_version: 2.7.4
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Sensu plugins for zookeeper
|