sensu-plugins-ceph 0.0.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93a68877548d810e932c6d3b36e3746543d8e4f0
4
- data.tar.gz: dca6658840c0ce6a28b41f648fe41b66f9625b18
3
+ metadata.gz: 78a910ed36380d1622a086fe3c5ab08e48d50bb1
4
+ data.tar.gz: 4333193e739f499ee63e9272f2d616921bb2471b
5
5
  SHA512:
6
- metadata.gz: 6443f403216c08bf5615bae0052fa075445602fb58bf38c4ba1fe4e1bc6543b2dee9018f35dd2f4536b877dbbfa3eaf065af79f2c990500dd29b5b7665c31878
7
- data.tar.gz: 0b1b600d1f443758359e3b4b596951832fca9cbae83bcd3e3f8bd6b4b23e89bdbe97d127f2c71c48892d871a9046533ffe031d42db02226cddfebc18b2c0769c
6
+ metadata.gz: 002c6db73472157505f63f6d6e06e524754aac1da0b5286f72309359067adca1882318d3b8b30ae41200eb0cf0d6b4efc0a71fd7425186b82435323f2b82c93b
7
+ data.tar.gz: 4545b633628d941e0e823fed0cf8cd5f4a87c7030657553dc699bb37830f9126286cdf57f9bc15177c58e52fe1135adcc9b4875f74894897df5840a22d26f504
@@ -1,10 +1,22 @@
1
- #Change Log
1
+ # Change Log
2
2
  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
7
- - nothing
6
+ ## [Unreleased]
7
+
8
+ ## [1.0.0] - 2017-05-17
9
+ ### Changed
10
+ - Upgrade to Rubocop 0.40 and cleanup
11
+
12
+ ### Fixed
13
+ - metrics-ceph.rb: Prevent stderr from polluting JSON output (@CoRfr)
14
+
15
+ ### Added
16
+ - Ruby 2.3 and 2.4 support (@eheydrick)
17
+
18
+ ### Removed
19
+ - Ruby 1.9.3 support
8
20
 
9
21
  ## [0.0.5] - 2015-11-26
10
22
  ### Added
@@ -30,11 +42,6 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
30
42
  ### Changed
31
43
  - updated sensu-plugin gem to 1.2.0
32
44
 
33
- ## 0.0.1 - 2015-04-30
34
-
35
- ### Added
36
- - initial release
37
-
38
45
  ## 0.0.2 - 2015-06-02
39
46
 
40
47
  ### Fixed
@@ -42,3 +49,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
42
49
 
43
50
  ### Changed
44
51
  - removed cruft from /lib
52
+
53
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ceph/compare/1.0.0...HEAD
54
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ceph/compare/0.0.5...1.0.0
55
+ [0.0.5]: https://github.com/sensu-plugins/sensu-plugins-ceph/compare/0.0.4...0.0.5
56
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-ceph/compare/0.0.3...0.0.4
57
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-ceph/compare/0.0.2...0.0.3
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  ## Sensu-Plugins-ceph
2
2
 
3
- [ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-ceph.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-ceph)
3
+ [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-ceph.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-ceph)
4
4
  [![Gem Version](https://badge.fury.io/rb/sensu-plugins-ceph.svg)](http://badge.fury.io/rb/sensu-plugins-ceph)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ceph/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ceph)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ceph/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ceph)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-ceph.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-ceph)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-ceph](https://codeship.com/projects/61bdf3c0-d4df-0132-2baa-0e210ac4c62f/status?branch=master)](https://codeship.com/projects/77911)
9
8
 
10
9
  ## Functionality
11
10
 
12
11
  ## Files
13
12
  * bin/check-ceph.rb
13
+ * bin/metrics-ceph.rb
14
14
  * bin/metrics-ceph-osd.rb
15
15
 
16
16
  ## Usage
@@ -131,12 +131,12 @@ class CheckCephHealth < Sensu::Plugin::Check::CLI
131
131
  def strip_warns(result)
132
132
  r = result.dup
133
133
  r.gsub!(/HEALTH_WARN\ /, '')
134
- .gsub!(/\ ?flag\(s\) set/, '')
135
- .gsub!(/\n/, '')
134
+ .gsub!(/\ ?flag\(s\) set/, '')
135
+ .delete!("\n")
136
136
  config[:ignore_flags].each do |f|
137
137
  r.gsub!(/,?#{f},?/, '')
138
138
  end
139
- if r.length == 0
139
+ if r.empty?
140
140
  result.gsub(/HEALTH_WARN/, 'HEALTH_OK')
141
141
  else
142
142
  result
@@ -74,9 +74,9 @@ class CephOsdMetrics < Sensu::Plugin::Metric::CLI::Graphite
74
74
  data = `ceph --admin-daemon #{socket} perf dump`
75
75
  if $CHILD_STATUS.exitstatus == 0
76
76
  # Left side of wildcard
77
- strip1 = config[:pattern].match(/^.*\*/).to_s.gsub(/\*/, '')
77
+ strip1 = config[:pattern].match(/^.*\*/).to_s.delete('*')
78
78
  # Right side of wildcard
79
- strip2 = config[:pattern].match(/\*.*$/).to_s.gsub(/\*/, '')
79
+ strip2 = config[:pattern].match(/\*.*$/).to_s.delete('*')
80
80
  osd_num = socket.gsub(strip1, '').gsub(strip2, '')
81
81
  JSON.parse(data).each do |k, v|
82
82
  k = k.gsub(/\/$/, '').gsub(/\//, '_')
@@ -80,7 +80,6 @@ class CephMetrics < Sensu::Plugin::Metric::CLI::Graphite
80
80
  cmd += config[:keyring] if config[:keyring]
81
81
  cmd += config[:monitor] if config[:monitor]
82
82
  cmd += config[:name] if config[:name]
83
- cmd += ' 2>&1'
84
83
  Timeout.timeout(config[:timeout]) do
85
84
  pipe = IO.popen(cmd)
86
85
  Process.wait(pipe.pid)
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsCeph
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 5
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-ceph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 1.0.0
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
- am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
16
- CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
18
- CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
19
- zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
20
- qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
21
- k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
22
- oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
23
- 0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
25
- QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
27
- rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
28
- UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
29
- JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-11-26 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-05-18 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: english
@@ -50,16 +28,16 @@ dependencies:
50
28
  name: sensu-plugin
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - '='
31
+ - - "~>"
54
32
  - !ruby/object:Gem::Version
55
- version: 1.2.0
33
+ version: '1.2'
56
34
  type: :runtime
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
- - - '='
38
+ - - "~>"
61
39
  - !ruby/object:Gem::Version
62
- version: 1.2.0
40
+ version: '1.2'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: bundler
65
43
  requirement: !ruby/object:Gem::Requirement
@@ -120,16 +98,16 @@ dependencies:
120
98
  name: rubocop
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
- - - '='
101
+ - - "~>"
124
102
  - !ruby/object:Gem::Version
125
- version: 0.32.1
103
+ version: 0.40.0
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: 0.32.1
110
+ version: 0.40.0
133
111
  - !ruby/object:Gem::Dependency
134
112
  name: rake
135
113
  requirement: !ruby/object:Gem::Requirement
@@ -189,9 +167,9 @@ dependencies:
189
167
  description: Sensu plugins for ceph
190
168
  email: "<sensu-users@googlegroups.com>"
191
169
  executables:
192
- - metrics-ceph.rb
193
- - metrics-ceph-osd.rb
194
170
  - check-ceph.rb
171
+ - metrics-ceph-osd.rb
172
+ - metrics-ceph.rb
195
173
  extensions: []
196
174
  extra_rdoc_files: []
197
175
  files:
@@ -221,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
199
  requirements:
222
200
  - - ">="
223
201
  - !ruby/object:Gem::Version
224
- version: 1.9.3
202
+ version: 2.0.0
225
203
  required_rubygems_version: !ruby/object:Gem::Requirement
226
204
  requirements:
227
205
  - - ">="
@@ -229,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
207
  version: '0'
230
208
  requirements: []
231
209
  rubyforge_project:
232
- rubygems_version: 2.4.8
210
+ rubygems_version: 2.4.5
233
211
  signing_key:
234
212
  specification_version: 4
235
213
  summary: Sensu plugins for ceph
@@ -1 +0,0 @@
1
- Q��O��B���oHcD��v>D�=+�-pYY��Ǘ޽H���ҫq�O����m����9尞œ���~��X���)|2gIH�{�v
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- ,%/ ���͆���h�Z��8��\���T����89]�ah�";Zh�t,��Ū�`�V�3������K&���Ǐ�"0� 3�!�q���,J�J�.f����W��W mhՉ��S2���c)q��t�/#�/3�'�7k2����쑏7���
2
- ¯��ў��fh�HQ�J��U>Hl$Z�7��ݘ��;J��7E�0�q�ɵAH
metadata.gz.sig DELETED
Binary file