sensu-plugins-hardware 1.3.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 +17 -1
- data/bin/check-hardware-fail.rb +3 -0
- data/lib/sensu-plugins-hardware.rb +2 -0
- data/lib/sensu-plugins-hardware/version.rb +4 -2
- metadata +32 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e57f2855b4a636ba5ad4f0fc0e7e2e8bac814444e87f6f89a3482f131251f9f9
|
4
|
+
data.tar.gz: b8892652d36ef83c364f76ec39785b097b8e3387975576f70761c10ebb909ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1181f33ab2295018a5974dc7d83e3d56a3c90dd22442448973db8e44675fb36113355c6e813058f2a16f445495bccd41daa10073d6954fd40aa546f7165eabf1
|
7
|
+
data.tar.gz: b508039bcb70f6f386081bc54857b38c0b09864e43f5900dbd6c8c93e554d1e2af76742f0b1b344ddc60754fb3424c9e9be09e41d74b569b7cdee51355f36067
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,21 @@ This CHANGELOG follows the format listed at [Our CHANGELOG Guidelines](https://g
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.0.0] - 2020-05-05
|
9
|
+
### Breaking Changes
|
10
|
+
- Update minimum required ruby version to 2.3. Drop unsupported ruby versions.
|
11
|
+
- Bump `sensu-plugin` dependency from `~> 1.2` to `~> 4.0`
|
12
|
+
|
13
|
+
### Added
|
14
|
+
- Bonsai asset support
|
15
|
+
### Changed
|
16
|
+
- Updated bundler dependancy to '~> 2.1'
|
17
|
+
- Updated rubocop dependency to '~> 0.81.0'
|
18
|
+
- Remediated rubocop issues
|
19
|
+
- Updated os dependency to '>= 0.9.6', '< 1.2.0'
|
20
|
+
- Updated codeclimate-test-reporter to '~> 1.0'
|
21
|
+
- Updated rake dependency to '~> 13.0'
|
22
|
+
|
8
23
|
## [1.3.0] - 2017-12-05
|
9
24
|
### Added
|
10
25
|
- Options `--facility`, `--level` and `--kernel` to restrict dmesg output on linux OS (@epierotto)
|
@@ -56,7 +71,8 @@ This CHANGELOG follows the format listed at [Our CHANGELOG Guidelines](https://g
|
|
56
71
|
### Changed
|
57
72
|
- removed cruft from /lib
|
58
73
|
|
59
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/
|
74
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/2.0.0...HEAD
|
75
|
+
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/1.3.0...2.0.0
|
60
76
|
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/1.2.0...1.3.0
|
61
77
|
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/1.1.0...1.2.0
|
62
78
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-hardware/compare/1.0.0...1.1.0
|
data/bin/check-hardware-fail.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
#
|
3
5
|
# check-hardware-fail
|
4
6
|
#
|
@@ -101,6 +103,7 @@ class CheckHardwareFail < Sensu::Plugin::Check::CLI
|
|
101
103
|
|
102
104
|
lines.each_with_index do |line, index|
|
103
105
|
break if config[:lines] && index >= config[:lines]
|
106
|
+
|
104
107
|
if config[:seconds]
|
105
108
|
timestamp = line.split(']').first.delete('[').to_i
|
106
109
|
break if timestamp < seconds_limit
|
metadata
CHANGED
@@ -1,85 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-hardware
|
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: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: os
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.6
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 1.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.9.6
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 1.2.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
34
|
+
name: sensu-plugin
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
39
|
+
version: '4.0'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - "~>"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
46
|
+
version: '4.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
53
|
+
version: '2.1'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
60
|
+
version: '2.1'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: codeclimate-test-reporter
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
67
|
+
version: '1.0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
74
|
+
version: '1.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: github-markup
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
81
|
+
version: '3.0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '3.0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: pry
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +106,14 @@ dependencies:
|
|
100
106
|
requirements:
|
101
107
|
- - "~>"
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
109
|
+
version: '13.0'
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
114
|
- - "~>"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
116
|
+
version: '13.0'
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
118
|
name: redcarpet
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,33 +129,33 @@ dependencies:
|
|
123
129
|
- !ruby/object:Gem::Version
|
124
130
|
version: '3.2'
|
125
131
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
132
|
+
name: rspec
|
127
133
|
requirement: !ruby/object:Gem::Requirement
|
128
134
|
requirements:
|
129
135
|
- - "~>"
|
130
136
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
137
|
+
version: '3.4'
|
132
138
|
type: :development
|
133
139
|
prerelease: false
|
134
140
|
version_requirements: !ruby/object:Gem::Requirement
|
135
141
|
requirements:
|
136
142
|
- - "~>"
|
137
143
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
144
|
+
version: '3.4'
|
139
145
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
146
|
+
name: rubocop
|
141
147
|
requirement: !ruby/object:Gem::Requirement
|
142
148
|
requirements:
|
143
149
|
- - "~>"
|
144
150
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
151
|
+
version: 0.81.0
|
146
152
|
type: :development
|
147
153
|
prerelease: false
|
148
154
|
version_requirements: !ruby/object:Gem::Requirement
|
149
155
|
requirements:
|
150
156
|
- - "~>"
|
151
157
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
158
|
+
version: 0.81.0
|
153
159
|
- !ruby/object:Gem::Dependency
|
154
160
|
name: yard
|
155
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
204
|
requirements:
|
199
205
|
- - ">="
|
200
206
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.
|
207
|
+
version: '2.3'
|
202
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
209
|
requirements:
|
204
210
|
- - ">="
|
@@ -206,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
212
|
version: '0'
|
207
213
|
requirements: []
|
208
214
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.7.
|
215
|
+
rubygems_version: 2.7.7
|
210
216
|
signing_key:
|
211
217
|
specification_version: 4
|
212
218
|
summary: Sensu plugins for physical hardware
|