sensu-plugins-beanstalk 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 906000c7b3ac46df503c7e11c22356c3b8eb057a
4
- data.tar.gz: e3f820ea0893a54e88fe532e78d178cdaedda46d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTE5YTgyNGJmYzQ3ZGVlZjUzNGEzYzhiYzg3NDlmOTUwNDdhMzg5OA==
5
+ data.tar.gz: !binary |-
6
+ NWFhNWU4NmYwNDQ3NWI3NmZiYmFhODViZmE0MzA1YTVmZGNhNDJhMw==
5
7
  SHA512:
6
- metadata.gz: c59fabef6ac1c173af0647aa7f500dc9002f9f1843d246ad073b9d27aa452457b7090c75e5023fef5576788e1a97fc55ae54f509c326013639edec9d19766b11
7
- data.tar.gz: 92b09f082dab2f3eecf179ed2d544bb779bd5c75a69f95aa5f01044b2d638ad0c25fd3376aa48fffcb165250098a322d5abc439bb8c8bb40aaefa96e0322e972
8
+ metadata.gz: !binary |-
9
+ YjU0Y2NjYjdiYmU1NmE5MDRiYzg5ZTBlZmU4MTczMGZkZGY3ZTE4NWI0MGM0
10
+ NjZlNTE5NTBiMDYxNDllZGU3MTY2NTY0OTgxMDBjMGZhZDBhNWVkMmVjZmQy
11
+ M2Y4MDgxNTA1MTAwZmRlN2MxNjE3NDM2OGU4MzYxZjNmMzdiOWU=
12
+ data.tar.gz: !binary |-
13
+ YzM1NjMwY2Q2ZGQwNDkzYWMzNDRmYTMxYzAxNWQ4MzBiMzJkZTVmNTNiMDJh
14
+ MDgwZThkOGJlNDZmYWI3ZGJmNjJhZTQ5NjFlNzE3NjUwNmQ3NDE2YmU5MzAy
15
+ MmE3MzJjMDY3NDU4Nzk5OTY3YzczMmRkNjc3OGQ3OTY5MWE5N2U=
data/CHANGELOG.md CHANGED
@@ -3,22 +3,28 @@ 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][unreleased]
6
+ ## Unreleased
7
+
8
+ ## [0.0.4] - 2016-02-18
9
+ ### Fixed
10
+ - cert issue
7
11
 
8
12
  ## [0.0.3] - 2015-07-14
9
13
  ### Changed
10
14
  - updated sensu-plugin gem to 1.2.0
11
15
 
12
- ## 0.0.1 - 2015-04-30
13
-
14
- ### Added
15
- - initial release
16
-
17
16
  ## [0.0.2] - 2015-06-02
18
-
19
17
  ### Fixed
20
18
  - added binstubs
21
19
 
22
20
  ### Changed
23
21
  - removed cruft from /lib
24
22
 
23
+ ## 0.0.1 - 2015-04-30
24
+ ### Added
25
+ - initial release
26
+
27
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-beanstalk/compare/0.0.4...HEAD
28
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-beanstalk/compare/0.0.3...0.0.4
29
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-beanstalk/compare/0.0.2...0.0.3
30
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-beanstalk/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-beanstalk/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-beanstalk)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-beanstalk/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-beanstalk)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-beanstalk.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-beanstalk)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-beanstalk](https://codeship.com/projects/9c376990-cd22-0132-003a-2698d59c4ad3/status?branch=master)](https://codeship.com/projects/76226)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -21,7 +20,7 @@
21
20
 
22
21
  ## Installation
23
22
 
24
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
23
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
25
24
 
26
25
 
27
26
  ## Notes
@@ -58,7 +58,7 @@ class CheckBeanstalkWorkers < Sensu::Plugin::Check::CLI
58
58
  proc: proc(&:to_i),
59
59
  default: 0
60
60
 
61
- def run # rubocop:disable all
61
+ def run
62
62
  begin
63
63
  beanstalk = Beanstalk::Connection.new(
64
64
  "#{config[:host]}:#{config[:port]}"
@@ -60,7 +60,7 @@ class CheckBeanstalkStatistic < Sensu::Plugin::Check::CLI
60
60
  proc: proc(&:to_i),
61
61
  default: 0
62
62
 
63
- def run # rubocop:disable all
63
+ def run
64
64
  begin
65
65
  beanstalk = Beanstalk::Connection.new(
66
66
  "#{config[:host]}:#{config[:port]}"
@@ -50,7 +50,7 @@ class CheckBeanstalkWatchersToBuried < Sensu::Plugin::Check::CLI
50
50
  proc: proc(&:to_i),
51
51
  default: 0
52
52
 
53
- def run # rubocop:disable all
53
+ def run
54
54
  unknown 'Tube was not set' unless config[:tube]
55
55
  begin
56
56
  beanstalk = Beanstalk::Connection.new(
@@ -68,7 +68,7 @@ class CheckBeanstalkWatchersToBuried < Sensu::Plugin::Check::CLI
68
68
  warning "Tube #{config[:tube]} not found"
69
69
  end
70
70
  # #YELLOW
71
- unless watchers # rubocop:disable IfUnlessModifier
71
+ unless watchers
72
72
  watchers = 0
73
73
  end
74
74
 
@@ -50,7 +50,7 @@ class CheckBeanstalkWatchers < Sensu::Plugin::Check::CLI
50
50
  proc: proc(&:to_i),
51
51
  default: false
52
52
 
53
- def run # rubocop:disable all
53
+ def run
54
54
  unknown 'Tube was not set' unless config[:tube]
55
55
  begin
56
56
  beanstalk = Beanstalk::Connection.new(
@@ -66,8 +66,7 @@ class CheckBeanstalkWatchers < Sensu::Plugin::Check::CLI
66
66
  rescue Beanstalk::NotFoundError
67
67
  warning "Tube #{config[:tube]} not found"
68
68
  end
69
- # #YELLOW
70
- unless watchers # rubocop:disable IfUnlessModifier
69
+ unless watchers
71
70
  watchers = 0
72
71
  end
73
72
  if config[:crit] && watchers < config[:crit]
@@ -84,26 +84,26 @@ class BeanstalkdQueuesStatus < Sensu::Plugin::Check::CLI
84
84
  conn
85
85
  end
86
86
 
87
- def run # rubocop:disable all
88
- stats = acquire_beanstalkd_connection.tubes["#{config[:tube]}"].stats
87
+ def run
88
+ stats = acquire_beanstalkd_connection.tubes[config[:tube].to_s].stats
89
89
  message 'All queues are healthy'
90
90
 
91
91
  warns, crits, msg = check_queues(stats)
92
92
  msg.join("\n")
93
93
 
94
- if crits.size > 0
94
+ if crits.size > 0 # rubocop:disable Style/ZeroLengthPredicate
95
95
  message msg
96
96
  critical
97
97
  end
98
98
 
99
- if warns.size > 0
99
+ if warns.size > 0 # rubocop:disable Style/ZeroLengthPredicate
100
100
  message msg
101
101
  warning
102
102
  end
103
103
  ok
104
104
  end
105
105
 
106
- def check_queues(stats) # rubocop:disable all
106
+ def check_queues(stats)
107
107
  msg = []
108
108
  crits = {}
109
109
  warns = {}
@@ -2,7 +2,7 @@ module SensuPluginsBeanstalk
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 3
5
+ PATCH = 4
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,51 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
14
- am9uZXMxGDAWBgoJk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u
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-02-18 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: sensu-plugin
37
15
  requirement: !ruby/object:Gem::Requirement
38
16
  requirements:
39
- - - '='
17
+ - - ~>
40
18
  - !ruby/object:Gem::Version
41
- version: 1.2.0
19
+ version: '1.2'
42
20
  type: :runtime
43
21
  prerelease: false
44
22
  version_requirements: !ruby/object:Gem::Requirement
45
23
  requirements:
46
- - - '='
24
+ - - ~>
47
25
  - !ruby/object:Gem::Version
48
- version: 1.2.0
26
+ version: '1.2'
49
27
  - !ruby/object:Gem::Dependency
50
28
  name: beanstalk-client
51
29
  requirement: !ruby/object:Gem::Requirement
@@ -75,140 +53,140 @@ dependencies:
75
53
  - !ruby/object:Gem::Version
76
54
  version: 0.3.3
77
55
  - !ruby/object:Gem::Dependency
78
- name: codeclimate-test-reporter
56
+ name: bundler
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - "~>"
59
+ - - ~>
82
60
  - !ruby/object:Gem::Version
83
- version: '0.4'
61
+ version: '1.7'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - "~>"
66
+ - - ~>
89
67
  - !ruby/object:Gem::Version
90
- version: '0.4'
68
+ version: '1.7'
91
69
  - !ruby/object:Gem::Dependency
92
- name: rubocop
70
+ name: codeclimate-test-reporter
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
- - - '='
73
+ - - ~>
96
74
  - !ruby/object:Gem::Version
97
- version: '0.30'
75
+ version: '0.4'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
- - - '='
80
+ - - ~>
103
81
  - !ruby/object:Gem::Version
104
- version: '0.30'
82
+ version: '0.4'
105
83
  - !ruby/object:Gem::Dependency
106
- name: rspec
84
+ name: github-markup
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
- - - "~>"
87
+ - - ~>
110
88
  - !ruby/object:Gem::Version
111
- version: '3.1'
89
+ version: '1.3'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
- - - "~>"
94
+ - - ~>
117
95
  - !ruby/object:Gem::Version
118
- version: '3.1'
96
+ version: '1.3'
119
97
  - !ruby/object:Gem::Dependency
120
- name: bundler
98
+ name: pry
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
- - - "~>"
101
+ - - ~>
124
102
  - !ruby/object:Gem::Version
125
- version: '1.7'
103
+ version: '0.10'
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
- - - "~>"
108
+ - - ~>
131
109
  - !ruby/object:Gem::Version
132
- version: '1.7'
110
+ version: '0.10'
133
111
  - !ruby/object:Gem::Dependency
134
112
  name: rake
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
- - - "~>"
115
+ - - ~>
138
116
  - !ruby/object:Gem::Version
139
- version: '10.0'
117
+ version: '10.5'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
- - - "~>"
122
+ - - ~>
145
123
  - !ruby/object:Gem::Version
146
- version: '10.0'
124
+ version: '10.5'
147
125
  - !ruby/object:Gem::Dependency
148
- name: github-markup
126
+ name: redcarpet
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
- - - "~>"
129
+ - - ~>
152
130
  - !ruby/object:Gem::Version
153
- version: '1.3'
131
+ version: '3.2'
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
- - - "~>"
136
+ - - ~>
159
137
  - !ruby/object:Gem::Version
160
- version: '1.3'
138
+ version: '3.2'
161
139
  - !ruby/object:Gem::Dependency
162
- name: redcarpet
140
+ name: rubocop
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - "~>"
143
+ - - ~>
166
144
  - !ruby/object:Gem::Version
167
- version: '3.2'
145
+ version: '0.37'
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
- - - "~>"
150
+ - - ~>
173
151
  - !ruby/object:Gem::Version
174
- version: '3.2'
152
+ version: '0.37'
175
153
  - !ruby/object:Gem::Dependency
176
- name: yard
154
+ name: rspec
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
- - - "~>"
157
+ - - ~>
180
158
  - !ruby/object:Gem::Version
181
- version: '0.8'
159
+ version: '3.4'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
- - - "~>"
164
+ - - ~>
187
165
  - !ruby/object:Gem::Version
188
- version: '0.8'
166
+ version: '3.4'
189
167
  - !ruby/object:Gem::Dependency
190
- name: pry
168
+ name: yard
191
169
  requirement: !ruby/object:Gem::Requirement
192
170
  requirements:
193
- - - "~>"
171
+ - - ~>
194
172
  - !ruby/object:Gem::Version
195
- version: '0.10'
173
+ version: '0.8'
196
174
  type: :development
197
175
  prerelease: false
198
176
  version_requirements: !ruby/object:Gem::Requirement
199
177
  requirements:
200
- - - "~>"
178
+ - - ~>
201
179
  - !ruby/object:Gem::Version
202
- version: '0.10'
180
+ version: '0.8'
203
181
  description: Sensu plugins for beanstalk
204
- email: "<sensu-users@googlegroups.com>"
182
+ email: <sensu-users@googlegroups.com>
205
183
  executables:
206
- - metrics-beanstalkd.rb
207
- - check-beanstalkd.rb
208
- - check-beanstalk-watchers.rb
209
- - check-beanstalk-watchers-to-buried.rb
210
- - check-beanstalk-statistic.rb
211
184
  - check-beanstalk-jobs.rb
185
+ - check-beanstalk-statistic.rb
186
+ - check-beanstalk-watchers-to-buried.rb
187
+ - check-beanstalk-watchers.rb
188
+ - check-beanstalkd.rb
189
+ - metrics-beanstalkd.rb
212
190
  extensions: []
213
191
  extra_rdoc_files: []
214
192
  files:
@@ -239,17 +217,17 @@ require_paths:
239
217
  - lib
240
218
  required_ruby_version: !ruby/object:Gem::Requirement
241
219
  requirements:
242
- - - ">="
220
+ - - ! '>='
243
221
  - !ruby/object:Gem::Version
244
222
  version: 1.9.3
245
223
  required_rubygems_version: !ruby/object:Gem::Requirement
246
224
  requirements:
247
- - - ">="
225
+ - - ! '>='
248
226
  - !ruby/object:Gem::Version
249
227
  version: '0'
250
228
  requirements: []
251
229
  rubyforge_project:
252
- rubygems_version: 2.4.6
230
+ rubygems_version: 2.4.5
253
231
  signing_key:
254
232
  specification_version: 4
255
233
  summary: Sensu plugins for beanstalk
checksums.yaml.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- ��
2
- >k�V�Wg����lU N�`���E�-C�~�S�|�ڞx+���&��V�k<W_���N�� ,�+:Um���>���(�6M
3
- ։��K��<R)Ӽ���J�]џǓx�����{�w�����_�I��t�� CF�
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
- ]�Y��� �l��&��n�.S��pQsz�zNЭ�B�u����ɮ""Ȓ�]����C�E( HUQ�D���]��h����`v��[�����U��C�[�GO �oɸK�Tu�uw�%�-���7n���gX��CѴ�P�uAK�%Ug,uP�o����t�����B0���ݩ)n�+*���6{c2�QTX&��,E*�F��>d2�8WJ�T�C�@.�0u dw��������t}92�i��DC5/=d��mn
metadata.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- �5tbfFy���
2
- ���<]~�zl���������3�1��
3
- �Qy ���� w��~R=����CRq�� �1z{+��(sL�*�I����