sensu-plugins-ceph 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +15 -2
- data/README.md +2 -2
- data/bin/check-ceph.rb +13 -5
- data/lib/sensu-plugins-ceph/version.rb +1 -1
- metadata +30 -30
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82da058290436a2a50ca288a5cce48691721c71b
|
4
|
+
data.tar.gz: 9f267a9dfb46ed3e0364d6053b434b4cc0de7646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43b4a99c9cf26dc0c933660761e3ab4df621ab1cf55b6a153af63c8480e5cbd47b44e32003cf37680c32d6f032f8d999f9262f2a242bcd0d59e69f053e6dc2b
|
7
|
+
data.tar.gz: d6da11a682a38a33fae3188c5c5c618201f5470b1a198b911bfa03079a89d2a6ce0981b322eccfe0d3abf31833ab614bfab6e5b48e2dbcc1317a4fef816fbc8c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,22 @@ 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
|
6
|
+
## Unreleased
|
7
|
+
- nothing
|
8
|
+
|
9
|
+
## [0.0.4] - 2015-07-31
|
10
|
+
### Changed
|
11
|
+
- updated documentation links
|
12
|
+
- updated rubocop to `0.32.1`
|
13
|
+
- put all deps in alpha order
|
14
|
+
- removed unused tasks
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
- health check only runs once on failure with details
|
18
|
+
- removes processing and conditional over health check result when unnecessary
|
7
19
|
|
8
20
|
## [0.0.3] - 2015-07-14
|
21
|
+
|
9
22
|
### Changed
|
10
23
|
- updated sensu-plugin gem to 1.2.0
|
11
24
|
|
@@ -20,4 +33,4 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
20
33
|
- added binstubs
|
21
34
|
|
22
35
|
### Changed
|
23
|
-
- removed cruft from /lib
|
36
|
+
- removed cruft from /lib
|
data/README.md
CHANGED
@@ -12,11 +12,11 @@
|
|
12
12
|
## Files
|
13
13
|
* bin/check-ceph.rb
|
14
14
|
* bin/metrics-ceph-osd.rb
|
15
|
-
|
15
|
+
|
16
16
|
## Usage
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
20
|
-
[Installation and Setup](
|
20
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
21
21
|
|
22
22
|
## Notes
|
data/bin/check-ceph.rb
CHANGED
@@ -137,18 +137,26 @@ class CheckCephHealth < Sensu::Plugin::Check::CLI
|
|
137
137
|
end
|
138
138
|
|
139
139
|
def run # rubocop:disable all
|
140
|
-
result =
|
141
|
-
unless result.start_with?('HEALTH_OK')
|
142
|
-
result = strip_warns(result) if config[:ignore_flags]
|
143
|
-
end
|
140
|
+
result = check_ceph_health
|
144
141
|
ok result if result.start_with?('HEALTH_OK')
|
145
142
|
|
146
|
-
result =
|
143
|
+
result = strip_warns(result) if config[:ignore_flags]
|
147
144
|
result += run_cmd('ceph osd tree') if config[:osd_tree]
|
145
|
+
|
148
146
|
if result.start_with?('HEALTH_WARN')
|
149
147
|
warning result
|
150
148
|
else
|
151
149
|
critical result
|
152
150
|
end
|
153
151
|
end
|
152
|
+
|
153
|
+
private
|
154
|
+
|
155
|
+
def check_ceph_health
|
156
|
+
if config[:show_detail]
|
157
|
+
run_cmd('ceph health detail')
|
158
|
+
else
|
159
|
+
run_cmd('ceph health')
|
160
|
+
end
|
161
|
+
end
|
154
162
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-ceph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu Plugins and contributors
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-07-
|
33
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: english
|
@@ -61,89 +61,89 @@ dependencies:
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 1.2.0
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
64
|
+
name: bundler
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '1.7'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '1.7'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
78
|
+
name: codeclimate-test-reporter
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '0.
|
83
|
+
version: '0.4'
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0.
|
90
|
+
version: '0.4'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
92
|
+
name: github-markup
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '3
|
97
|
+
version: '1.3'
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '3
|
104
|
+
version: '1.3'
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
106
|
+
name: pry
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
111
|
+
version: '0.10'
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
118
|
+
version: '0.10'
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
120
|
+
name: rubocop
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - '='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
125
|
+
version: 0.32.1
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 0.32.1
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
134
|
+
name: rake
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
139
|
+
version: '10.0'
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
146
|
+
version: '10.0'
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: redcarpet
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,33 +159,33 @@ dependencies:
|
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '3.2'
|
161
161
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
162
|
+
name: rspec
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
167
|
+
version: '3.1'
|
168
168
|
type: :development
|
169
169
|
prerelease: false
|
170
170
|
version_requirements: !ruby/object:Gem::Requirement
|
171
171
|
requirements:
|
172
172
|
- - "~>"
|
173
173
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
174
|
+
version: '3.1'
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
176
|
+
name: yard
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version: '0.
|
181
|
+
version: '0.8'
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
186
|
- - "~>"
|
187
187
|
- !ruby/object:Gem::Version
|
188
|
-
version: '0.
|
188
|
+
version: '0.8'
|
189
189
|
description: Sensu plugins for ceph
|
190
190
|
email: "<sensu-users@googlegroups.com>"
|
191
191
|
executables:
|
metadata.gz.sig
CHANGED
Binary file
|