sensu-plugins-kegbot 0.0.2 → 1.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 +18 -4
- data/README.md +4 -3
- data/bin/check-kegbot.rb +2 -2
- data/bin/metrics-kegbot.rb +1 -1
- data/lib/sensu-plugins-kegbot/version.rb +2 -2
- metadata +14 -36
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -3
- 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: b9e7beb8b2b70cd414334e524298c655c7abe8d0
|
4
|
+
data.tar.gz: c4078556037197a51dfa230e2c6b9af0910bf886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e77e663bf894f7068ddf7be01682434bd57c5b8da4cc4ceb68ddace70106ff0af0dd57f6b31a5e1f2b0e488fb5a4b4bf5e41233fb17f4ce52fa1a559d216fa9
|
7
|
+
data.tar.gz: 708209a02ef54c1b1bf52bd4a5d9c95237f7fb357a45700a0777bb21a66c158b69adc5ee94727af125509bf9f2475252efea72df387792342727617916072fa4
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,28 @@
|
|
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]
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.0.0] - 2017-05-11
|
9
|
+
### Added
|
10
|
+
- Support for Ruby 2.3 and 2.4
|
11
|
+
|
12
|
+
### Removed
|
13
|
+
- Ruby 1.9.3 support
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
- Update `sensu-plugin` dependency to `~> 1.2`
|
7
17
|
|
8
18
|
## [0.0.2] - 2015-07-14
|
9
19
|
### Changed
|
10
20
|
- updated sensu-plugin gem to 1.2.0
|
11
21
|
|
12
|
-
##
|
22
|
+
## 0.0.1 - 2015-06-04
|
13
23
|
### Added
|
14
|
-
- initial release
|
24
|
+
- initial release
|
25
|
+
|
26
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-kegbot/compare/1.0.0...HEAD
|
27
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-kegbot/compare/0.0.2...1.0.0
|
28
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-kegbot/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
## Sensu-Plugins-kegbot
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-kegbot.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-kegbot)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-kegbot.svg)](http://badge.fury.io/rb/sensu-plugins-kegbot)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-kegbot/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-kegbot)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-kegbot/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-kegbot)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-kegbot.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-kegbot)
|
8
|
-
[ ![Codeship Status for sensu-plugins/sensu-plugins-kegbot](https://codeship.com/projects/deb0b470-edcc-0132-88d7-5a51cb58650a/status?branch=master)](https://codeship.com/projects/84124)
|
9
8
|
|
10
9
|
## Functionality
|
11
10
|
|
11
|
+
Checks for monitoring and collecting metrics from [Kegbot](https://kegbot.org/). :beers:
|
12
|
+
|
12
13
|
## Files
|
13
14
|
* bin/check-kegbot.rb
|
14
15
|
* bin/metrics-kegbot.rb
|
@@ -17,6 +18,6 @@
|
|
17
18
|
|
18
19
|
## Installation
|
19
20
|
|
20
|
-
[Installation and Setup](
|
21
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
21
22
|
|
22
23
|
## Notes
|
data/bin/check-kegbot.rb
CHANGED
@@ -81,9 +81,9 @@ class Kegbot < Sensu::Plugin::Check::CLI
|
|
81
81
|
|
82
82
|
if warn_taps.empty? && crit_taps.empty?
|
83
83
|
ok 'All kegs above thresholds'
|
84
|
-
elsif crit_taps.size > 0
|
84
|
+
elsif crit_taps.size > 0 # rubocop:disable Style/ZeroLengthPredicate
|
85
85
|
critical crit_taps.join(', ')
|
86
|
-
elsif warn_taps.size > 0
|
86
|
+
elsif warn_taps.size > 0 # rubocop:disable Style/ZeroLengthPredicate
|
87
87
|
warning warn_taps.join(', ')
|
88
88
|
end
|
89
89
|
end
|
data/bin/metrics-kegbot.rb
CHANGED
@@ -59,7 +59,7 @@ class KegbotMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
59
59
|
|
60
60
|
taps.each do |tap|
|
61
61
|
next if tap['current_keg'].nil?
|
62
|
-
tap_name = tap['name'].
|
62
|
+
tap_name = tap['name'].tr(' ', '_')
|
63
63
|
output "#{config[:scheme]}.#{tap_name}.percent_full", tap['current_keg']['percent_full']
|
64
64
|
output "#{config[:scheme]}.#{tap_name}.volume_ml_remain", tap['current_keg']['volume_ml_remain']
|
65
65
|
end
|
metadata
CHANGED
@@ -1,51 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-kegbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
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:
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vSmuUT0yMEi7u00H/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-07-14 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-12 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
|
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
|
26
|
+
version: '1.2'
|
49
27
|
- !ruby/object:Gem::Dependency
|
50
28
|
name: bundler
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,16 +84,16 @@ dependencies:
|
|
106
84
|
name: rubocop
|
107
85
|
requirement: !ruby/object:Gem::Requirement
|
108
86
|
requirements:
|
109
|
-
- -
|
87
|
+
- - "~>"
|
110
88
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
89
|
+
version: 0.40.0
|
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:
|
96
|
+
version: 0.40.0
|
119
97
|
- !ruby/object:Gem::Dependency
|
120
98
|
name: rspec
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,8 +153,8 @@ dependencies:
|
|
175
153
|
description: Sensu kegbot plugins
|
176
154
|
email: "<sensu-users@googlegroups.com>"
|
177
155
|
executables:
|
178
|
-
- metrics-kegbot.rb
|
179
156
|
- check-kegbot.rb
|
157
|
+
- metrics-kegbot.rb
|
180
158
|
extensions: []
|
181
159
|
extra_rdoc_files: []
|
182
160
|
files:
|
@@ -205,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
183
|
requirements:
|
206
184
|
- - ">="
|
207
185
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
186
|
+
version: 2.0.0
|
209
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
188
|
requirements:
|
211
189
|
- - ">="
|
@@ -213,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
191
|
version: '0'
|
214
192
|
requirements: []
|
215
193
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.4.
|
194
|
+
rubygems_version: 2.4.5
|
217
195
|
signing_key:
|
218
196
|
specification_version: 4
|
219
197
|
summary: Sensu plugins for kegbot
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED
Binary file
|