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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9726fd4f9ed8c5f89825fb98a032632c479fe9ad
4
- data.tar.gz: f0b61c75a0f7d084a45e7b638bd2e3479471ebf5
3
+ metadata.gz: 7c498c47ea371b322d633df89833cb387af11ef1
4
+ data.tar.gz: 863b4c1b8d263450ea74050a43603cf3f2b4cf08
5
5
  SHA512:
6
- metadata.gz: b62e548c8d701d71a799722c173c7a87c6c5e4646644dc66a5c488661d8c1d36cc7d346c94e1b435d1e437dbc0276dae8f133509d92bd2caa2b1deb85b2056ab
7
- data.tar.gz: 59690b48664f6fcdf365caa9dac4837760f1df922c433dec6ba58869411406387b87413b3599111f4ba93cd7b6205f9ade1c7e3b41ba1ddb518843054f6c7868
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
- #### 0.0.1.alpha.1
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
- * identical functionality to the community-plugins repo
6
+ ## Unreleased][unreleased]
7
+
8
+ ## 0.0.1 - 2015-05-21
9
+
10
+ ### Added
11
+ - initial release
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 devops@yieldbot.com
1
+ Copyright (c) 2015 Sensu-Plugins
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -5,53 +5,21 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-cpu-checks)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-cpu-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-cpu-checks)
8
+ [ ![Codeship Status for sensu-plugins/sensu-plugins-cpu-checks](https://codeship.com/projects/594a6450-d4f8-0132-20c9-0e210ac4c62f/status?branch=master)](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
- Add the public key (if you haven’t already) as a trusted certificate
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
@@ -1,7 +1,14 @@
1
+ require 'sensu-plugins-cpu-checks/version'
2
+
3
+ # Load the defaults
4
+
1
5
  #
2
- # Set gem version
6
+ # Default class
3
7
  #
4
8
  module SensuPluginsCpuChecks
5
- # Gem version
6
- VERSION = '0.0.1.alpha.1'
9
+ class << self
10
+ end
11
+
12
+ class << self
13
+ end
7
14
  end
@@ -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.alpha.1
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Yieldbot, Inc. and contributors
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-04-10 00:00:00.000000000 Z
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.17.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.17.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: unmaintained
210
+ maintainer: "@mattyjones"
211
+ development_status: active
197
212
  production_status: unstable - testing recommended
198
- post_install_message:
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: 1.3.1
229
+ version: '0'
212
230
  requirements: []
213
231
  rubyforge_project:
214
- rubygems_version: 2.2.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