sensu-plugins-cpu-checks 0.0.1.alpha.1 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +8 -3
- data/LICENSE +1 -1
- data/README.md +5 -37
- data/bin/check-cpu.sh +0 -0
- data/lib/sensu-plugins-cpu-checks.rb +10 -3
- data/lib/sensu-plugins-cpu-checks/version.rb +28 -0
- metadata +31 -14
- 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: 7c498c47ea371b322d633df89833cb387af11ef1
|
|
4
|
+
data.tar.gz: 863b4c1b8d263450ea74050a43603cf3f2b4cf08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6680221c22e4d6e7afba25da504993ee6af5c189d887ac4671d143c15a9a951b71cc3a1cc5bc576a488d89d4a1e24cec794c112d07fe52039d9362cb0e905914
|
|
7
|
+
data.tar.gz: c007d1c68b0af62e0c26118002a57e4f4b3639be9071db3070fbbe5d49582e6d9715dfd52573f7b273965d7ef0be5d68772045df1ff7ff3cb022089407706ab0
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
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
|
-
|
|
6
|
+
## Unreleased][unreleased]
|
|
7
|
+
|
|
8
|
+
## 0.0.1 - 2015-05-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- initial release
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -5,53 +5,21 @@
|
|
|
5
5
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks)
|
|
6
6
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks)
|
|
7
7
|
[](https://gemnasium.com/sensu-plugins/sensu-plugins-cpu-checks)
|
|
8
|
+
[ ](https://codeship.com/projects/77924)
|
|
8
9
|
|
|
9
10
|
## Functionality
|
|
10
11
|
|
|
11
12
|
## Files
|
|
12
13
|
* bin/check-cpu.rb
|
|
13
14
|
* bin/check-cpu.sh
|
|
14
|
-
* bin/metrics-cpu-mpstat
|
|
15
|
-
* bin/metrics-cpu-pcnt-usage
|
|
16
|
-
* bin/metrics-user-pct-usage
|
|
15
|
+
* bin/metrics-cpu-mpstat.rb
|
|
16
|
+
* bin/metrics-cpu-pcnt-usage.rb
|
|
17
|
+
* bin/metrics-user-pct-usage.rb
|
|
17
18
|
|
|
18
19
|
## Usage
|
|
19
20
|
|
|
20
21
|
## Installation
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
|
|
26
|
-
gem install sensu-plugins-cpu-checks -P MediumSecurity
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
You can also download the key from /certs/ within each repository.
|
|
30
|
-
|
|
31
|
-
#### Rubygems
|
|
32
|
-
|
|
33
|
-
`gem install sensu-plugins-cpu-checks`
|
|
34
|
-
|
|
35
|
-
#### Bundler
|
|
36
|
-
|
|
37
|
-
Add *sensu-plugins-cpu-checks* to your Gemfile and run `bundle install` or `bundle update`
|
|
38
|
-
|
|
39
|
-
#### Chef
|
|
40
|
-
|
|
41
|
-
Using the Sensu **sensu_gem** LWRP
|
|
42
|
-
```
|
|
43
|
-
sensu_gem 'sensu-plugins-cpu-checks' do
|
|
44
|
-
options('--prerelease')
|
|
45
|
-
version '0.0.1'
|
|
46
|
-
end
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Using the Chef **gem_package** resource
|
|
50
|
-
```
|
|
51
|
-
gem_package 'sensu-plugins-cpu-checks' do
|
|
52
|
-
options('--prerelease')
|
|
53
|
-
version '0.0.1'
|
|
54
|
-
end
|
|
55
|
-
```
|
|
23
|
+
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
|
|
56
24
|
|
|
57
25
|
## Notes
|
data/bin/check-cpu.sh
CHANGED
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
# encoding: utf-8
|
|
4
|
+
module SensuPluginsCpuChecks
|
|
5
|
+
# This defines the version of the gem
|
|
6
|
+
module Version
|
|
7
|
+
MAJOR = 0
|
|
8
|
+
MINOR = 0
|
|
9
|
+
PATCH = 1
|
|
10
|
+
|
|
11
|
+
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
|
|
12
|
+
|
|
13
|
+
NAME = 'sensu-plugins-cpu-checks'
|
|
14
|
+
BANNER = "#{NAME} v%s"
|
|
15
|
+
|
|
16
|
+
module_function
|
|
17
|
+
|
|
18
|
+
def version
|
|
19
|
+
format(BANNER, VER_STRING)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def json_version
|
|
23
|
+
{
|
|
24
|
+
'version' => VER_STRING
|
|
25
|
+
}.to_json
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-cpu-checks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Sensu Plugins and contributors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain:
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2015-
|
|
33
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: sensu-plugin
|
|
@@ -46,6 +46,20 @@ dependencies:
|
|
|
46
46
|
- - '='
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
48
|
version: 1.1.0
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: linux-kstat
|
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - '='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 0.1.0
|
|
56
|
+
type: :runtime
|
|
57
|
+
prerelease: false
|
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - '='
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 0.1.0
|
|
49
63
|
- !ruby/object:Gem::Dependency
|
|
50
64
|
name: codeclimate-test-reporter
|
|
51
65
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -64,16 +78,16 @@ dependencies:
|
|
|
64
78
|
name: rubocop
|
|
65
79
|
requirement: !ruby/object:Gem::Requirement
|
|
66
80
|
requirements:
|
|
67
|
-
- -
|
|
81
|
+
- - "~>"
|
|
68
82
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.
|
|
83
|
+
version: '0.30'
|
|
70
84
|
type: :development
|
|
71
85
|
prerelease: false
|
|
72
86
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
87
|
requirements:
|
|
74
|
-
- -
|
|
88
|
+
- - "~>"
|
|
75
89
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: 0.
|
|
90
|
+
version: '0.30'
|
|
77
91
|
- !ruby/object:Gem::Dependency
|
|
78
92
|
name: rspec
|
|
79
93
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -188,14 +202,18 @@ files:
|
|
|
188
202
|
- bin/metrics-cpu.rb
|
|
189
203
|
- bin/metrics-user-pct-usage.rb
|
|
190
204
|
- lib/sensu-plugins-cpu-checks.rb
|
|
205
|
+
- lib/sensu-plugins-cpu-checks/version.rb
|
|
191
206
|
homepage: https://github.com/sensu-plugins/sensu-plugins-cpu-checks
|
|
192
207
|
licenses:
|
|
193
208
|
- MIT
|
|
194
209
|
metadata:
|
|
195
|
-
maintainer:
|
|
196
|
-
development_status:
|
|
210
|
+
maintainer: "@mattyjones"
|
|
211
|
+
development_status: active
|
|
197
212
|
production_status: unstable - testing recommended
|
|
198
|
-
|
|
213
|
+
releae_draft: 'false'
|
|
214
|
+
release_prerelease: 'false'
|
|
215
|
+
post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
|
|
216
|
+
in /etc/default/sensu
|
|
199
217
|
rdoc_options: []
|
|
200
218
|
require_paths:
|
|
201
219
|
- lib
|
|
@@ -206,14 +224,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
206
224
|
version: 1.9.3
|
|
207
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
226
|
requirements:
|
|
209
|
-
- - "
|
|
227
|
+
- - ">="
|
|
210
228
|
- !ruby/object:Gem::Version
|
|
211
|
-
version:
|
|
229
|
+
version: '0'
|
|
212
230
|
requirements: []
|
|
213
231
|
rubyforge_project:
|
|
214
|
-
rubygems_version: 2.
|
|
232
|
+
rubygems_version: 2.4.6
|
|
215
233
|
signing_key:
|
|
216
234
|
specification_version: 4
|
|
217
235
|
summary: Sensu plugins for cpu checks and metrics
|
|
218
236
|
test_files: []
|
|
219
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
|
Binary file
|