sensu-plugins-cpu-checks 0.0.4 → 1.0.0

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: a074d040a240dead20971944d166b6e3b7505284
4
- data.tar.gz: e671bc4985a80ebb41d2c9b53be24d1ddcf34244
3
+ metadata.gz: 62dd909eef356c0f7609fbd23605277d6a834c81
4
+ data.tar.gz: 7e015eefbd51ce934b4362e6ea7a1bebd0b4c4e3
5
5
  SHA512:
6
- metadata.gz: 9d4ad55878708411784d6450da44a9bfadde539bffb07f71d9963e33882e1a7362a272e01846be521e06650228cdff64d4e0d74d3317d5a1e128a77190fd4433
7
- data.tar.gz: 1937bbd262e78d1b56670c083fdbf113a82400fa113ceea3800bfba5d0d192153844358159ffc05f06d27415d846b71b72b7a8a9891eeeb45947e56fd03fd013
6
+ metadata.gz: 0639f2733b45647230f0048554655b50d7dd6b32f1a8e807ce8c7f8c29f90314a25da3e889df7ea46f2caab7a2c6232bcd54996e29f0684c086a657fc2b4d81f
7
+ data.tar.gz: e64ccaadf5d2e4491d215411954baa0f36c400a53f333df5dab2489b69adb23eaec3b5d46dc53b86d07fbe22df06e6207c2dda89481e6d5eb13b7ac488cd1236
data/CHANGELOG.md CHANGED
@@ -3,7 +3,21 @@ 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] - 2016-06-15
9
+ ### Changed
10
+ - Modified check-cpu.rb to change state if >= threshold
11
+ - Updated Rubocop to 0.40, applied auto-correct
12
+ - Loosened sensu-plugin dependency to ~> 1.2
13
+ - Specify the /proc location for use within a container
14
+
15
+ ### Added
16
+ - Added metrics-numastat.rb
17
+ - check-cpu.rb: Added --idle-metrics flag for indicating counters which should be considered idle
18
+
19
+ ### Removed
20
+ - Remove Ruby 1.9.3 support; add Ruby 2.3.0 support in test matrix
7
21
 
8
22
  ## [0.0.4] - 2015-09-29
9
23
  ### Changed
@@ -14,15 +28,20 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
14
28
  ### Changed
15
29
  - updated sensu-plugin gem to 1.2.0
16
30
 
17
- ## 0.0.1 - 2015-05-21
18
-
19
- ### Added
20
- - initial release
21
-
22
31
  ## [0.0.2] - 2015-06-02
23
-
24
32
  ### Fixed
25
33
  - added binstubs
26
34
 
27
35
  ### Changed
28
36
  - removed cruft from /lib
37
+
38
+ ## 0.0.1 - 2015-05-21
39
+ ### Added
40
+ - initial release
41
+
42
+
43
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/compare/1.0.0...HEAD
44
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/compare/0.0.4...1.0.0
45
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/compare/0.0.3...0.0.4
46
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/compare/0.0.2...0.0.3
47
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-cpu-checks/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -5,7 +5,6 @@
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)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -14,6 +13,7 @@
14
13
  * bin/check-cpu.sh
15
14
  * bin/metrics-cpu-mpstat.rb
16
15
  * bin/metrics-cpu-pcnt-usage.rb
16
+ * bin/metrics-numastat.rb
17
17
  * bin/metrics-user-pct-usage.rb
18
18
 
19
19
  ## Usage
data/bin/check-cpu.rb CHANGED
@@ -31,6 +31,8 @@ require 'sensu-plugin/check/cli'
31
31
  # Check CPU
32
32
  #
33
33
  class CheckCPU < Sensu::Plugin::Check::CLI
34
+ CPU_METRICS = [:user, :nice, :system, :idle, :iowait, :irq, :softirq, :steal, :guest, :guest_nice].freeze
35
+
34
36
  option :warn,
35
37
  short: '-w WARN',
36
38
  proc: proc(&:to_f),
@@ -46,7 +48,18 @@ class CheckCPU < Sensu::Plugin::Check::CLI
46
48
  proc: proc(&:to_f),
47
49
  default: 1
48
50
 
49
- [:user, :nice, :system, :idle, :iowait, :irq, :softirq, :steal, :guest].each do |metric|
51
+ option :proc_path,
52
+ long: '--proc-path /proc',
53
+ proc: proc(&:to_f),
54
+ default: '/proc'
55
+
56
+ option :idle_metrics,
57
+ long: '--idle-metrics METRICS',
58
+ description: 'Treat the specified metrics as idle. Defaults to idle,iowait,steal,guest,guest_nice',
59
+ proc: proc { |x| x.split(/,/).map { |y| y.strip.to_sym } },
60
+ default: [:idle, :iowait, :steal, :guest, :guest_nice]
61
+
62
+ CPU_METRICS.each do |metric|
50
63
  option metric,
51
64
  long: "--#{metric}",
52
65
  description: "Check cpu #{metric} instead of total cpu usage",
@@ -55,22 +68,20 @@ class CheckCPU < Sensu::Plugin::Check::CLI
55
68
  end
56
69
 
57
70
  def acquire_cpu_stats
58
- File.open('/proc/stat', 'r').each_line do |line|
71
+ File.open("#{config[:proc_path]}/stat", 'r').each_line do |line|
59
72
  info = line.split(/\s+/)
60
73
  name = info.shift
61
- return info.map(&:to_f) if name.match(/^cpu$/)
74
+ return info.map(&:to_f) if name =~ /^cpu$/
62
75
  end
63
76
  end
64
77
 
65
78
  def run
66
- metrics = [:user, :nice, :system, :idle, :iowait, :irq, :softirq, :steal, :guest]
67
-
68
79
  cpu_stats_before = acquire_cpu_stats
69
80
  sleep config[:sleep]
70
81
  cpu_stats_after = acquire_cpu_stats
71
82
 
72
- # Some kernels don't have a 'guest' value (RHEL5).
73
- metrics = metrics.slice(0, cpu_stats_after.length)
83
+ # Some kernels don't have 'guest' and 'guest_nice' values
84
+ metrics = CPU_METRICS.slice(0, cpu_stats_after.length)
74
85
 
75
86
  cpu_total_diff = 0.to_f
76
87
  cpu_stats_diff = []
@@ -84,7 +95,9 @@ class CheckCPU < Sensu::Plugin::Check::CLI
84
95
  cpu_stats[i] = 100 * (cpu_stats_diff[i] / cpu_total_diff)
85
96
  end
86
97
 
87
- cpu_usage = 100 * (cpu_total_diff - cpu_stats_diff[3]) / cpu_total_diff
98
+ idle_diff = metrics.each_with_index.map { |metric, i| config[:idle_metrics].include?(metric) ? cpu_stats_diff[i] : 0.0 }.reduce(0.0, :+)
99
+
100
+ cpu_usage = 100 * (cpu_total_diff - idle_diff) / cpu_total_diff
88
101
  checked_usage = cpu_usage
89
102
 
90
103
  self.class.check_name 'CheckCPU TOTAL'
@@ -100,8 +113,8 @@ class CheckCPU < Sensu::Plugin::Check::CLI
100
113
 
101
114
  message msg
102
115
 
103
- critical if checked_usage > config[:crit]
104
- warning if checked_usage > config[:warn]
116
+ critical if checked_usage >= config[:crit]
117
+ warning if checked_usage >= config[:warn]
105
118
  ok
106
119
  end
107
120
  end
data/bin/check-cpu.sh CHANGED
@@ -24,6 +24,8 @@ while getopts ':w:c:h' OPT; do
24
24
  esac
25
25
  done
26
26
 
27
+ PROC_PATH=${PROC_PATH:-'/proc'}
28
+
27
29
  # usage
28
30
  HELP="
29
31
  usage: $0 [ -w value -c value -p -h ]
@@ -44,7 +46,7 @@ if [ ${#cpuusage1} -eq 0 ]; then
44
46
  exit 2
45
47
  fi
46
48
  sleep 1
47
- cpuusage2=(`cat /proc/stat | head -1`)
49
+ cpuusage2=(`cat $PROC_PATH/stat | head -1`)
48
50
  if [ ${#cpuusage2} -eq 0 ]; then
49
51
  echo "CRITICAL - CPU UNKNOWN"
50
52
  exit 2
@@ -78,7 +78,7 @@ class CpuGraphite < Sensu::Plugin::Metric::CLI::Graphite
78
78
  # assumes architecture's jiffie is 1/100th of a second
79
79
  columns.each_pair do |task, time|
80
80
  # #YELLOW
81
- time = time / cpu_count if "#{cpu}" == 'cpu' # rubocop:disable Style/SelfAssignment
81
+ time = time / cpu_count if cpu.to_s == 'cpu' # rubocop:disable Style/SelfAssignment
82
82
  output "#{config[:scheme]}.#{cpu}.#{task}", time
83
83
  end
84
84
  end
@@ -36,15 +36,20 @@ class CpuGraphite < Sensu::Plugin::Metric::CLI::Graphite
36
36
  long: '--scheme SCHEME',
37
37
  default: "#{Socket.gethostname}.cpu"
38
38
 
39
+ option :proc_path,
40
+ long: '--proc-path /proc',
41
+ proc: proc(&:to_f),
42
+ default: '/proc'
43
+
39
44
  def acquire_proc_stats
40
45
  cpu_metrics = %w(user nice system idle iowait irq softirq steal guest)
41
- File.open('/proc/stat', 'r').each_line do |line|
46
+ File.open("#{config[:proc_path]}/stat", 'r').each_line do |line|
42
47
  info = line.split(/\s+/)
43
48
  next if info.empty?
44
49
  name = info.shift
45
50
 
46
51
  # we are matching TOTAL stats and returning a hash of values
47
- if name.match(/^cpu$/)
52
+ if name =~ /^cpu$/
48
53
  # return the CPU metrics sample as a hash
49
54
  # filter out nil values, as some kernels don't have a 'guest' value
50
55
  return Hash[cpu_metrics.zip(info.map(&:to_i))].reject { |_key, value| value.nil? }
data/bin/metrics-cpu.rb CHANGED
@@ -36,17 +36,22 @@ class CpuGraphite < Sensu::Plugin::Metric::CLI::Graphite
36
36
  long: '--scheme SCHEME',
37
37
  default: "#{Socket.gethostname}.cpu"
38
38
 
39
+ option :proc_path,
40
+ long: '--proc-path /proc',
41
+ proc: proc(&:to_f),
42
+ default: '/proc'
43
+
39
44
  def run
40
45
  cpu_metrics = %w(user nice system idle iowait irq softirq steal guest)
41
46
  other_metrics = %w(ctxt processes procs_running procs_blocked btime intr)
42
47
  cpu_count = 0
43
48
 
44
- File.open('/proc/stat', 'r').each_line do |line|
49
+ File.open("#{config[:proc_path]}/stat", 'r').each_line do |line|
45
50
  info = line.split(/\s+/)
46
51
  next if info.empty?
47
52
  name = info.shift
48
53
 
49
- if name.match(/cpu([0-9]+|)/)
54
+ if name =~ /cpu([0-9]+|)/
50
55
  # #YELLOW
51
56
  cpu_count = cpu_count + 1 # rubocop:disable Style/SelfAssignment
52
57
  name = 'total' if name == 'cpu'
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # metrics-numastat
4
+ #
5
+ # DESCRIPTION:
6
+ # Simple wrapper around `numastat` for getting per-NUMA-node memory stats.
7
+ #
8
+ # OUTPUT:
9
+ # metric data
10
+ #
11
+ # PLATFORMS:
12
+ # Linux
13
+ #
14
+ # DEPENDENCIES:
15
+ # gem: sensu-plugin
16
+ #
17
+ # USAGE:
18
+ #
19
+ # NOTES:
20
+ #
21
+ # LICENSE:
22
+ # Copyright 2016 Mitsutoshi Aoe
23
+ # Released under the same terms as Sensu (the MIT license); see LICENSE
24
+ # for details.
25
+ #
26
+
27
+ require 'socket'
28
+ require 'sensu-plugin/metric/cli'
29
+
30
+ class NumastatMetrics < Sensu::Plugin::Metric::CLI::Graphite
31
+ option :scheme,
32
+ description: 'Metric naming scheme, text to prepend to metric',
33
+ short: '-s SCHEME',
34
+ long: '--scheme SCHEME',
35
+ default: "#{Socket.gethostname}.numastat"
36
+
37
+ def run
38
+ begin
39
+ output = `/usr/bin/numastat`
40
+ rescue Errno::ENOENT => err
41
+ unknown err
42
+ end
43
+
44
+ nodes = []
45
+ output.each_line do |line|
46
+ nodes = line.split(' ') if nodes.empty?
47
+ next unless /^([^\s]+)\s+(.+)$/ =~ line
48
+ key = Regexp.last_match[1]
49
+ vals = Regexp.last_match[2]
50
+ next if key.nil? || vals.nil?
51
+ nodes.zip(vals.split(' ')).each do |node, val|
52
+ output "#{config[:scheme]}.#{node}.#{key}", val
53
+ end
54
+ end
55
+
56
+ ok
57
+ end
58
+ end
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsCpuChecks
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,203 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-cpu-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
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:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
14
- am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
16
- CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
18
- CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
19
- zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
20
- qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
21
- k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
22
- oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
23
- 0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
25
- QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
27
- rvSmuUT0yMEi7u00H/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-09-29 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-06-15 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.0
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.0
26
+ version: '1.2'
49
27
  - !ruby/object:Gem::Dependency
50
28
  name: linux-kstat
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
31
  - - '='
54
32
  - !ruby/object:Gem::Version
55
- version: 0.1.0
33
+ version: 0.1.3
56
34
  type: :runtime
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
38
  - - '='
61
39
  - !ruby/object:Gem::Version
62
- version: 0.1.0
40
+ version: 0.1.3
63
41
  - !ruby/object:Gem::Dependency
64
- name: codeclimate-test-reporter
42
+ name: bundler
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
45
  - - "~>"
68
46
  - !ruby/object:Gem::Version
69
- version: '0.4'
47
+ version: '1.7'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
52
  - - "~>"
75
53
  - !ruby/object:Gem::Version
76
- version: '0.4'
54
+ version: '1.7'
77
55
  - !ruby/object:Gem::Dependency
78
- name: rubocop
56
+ name: codeclimate-test-reporter
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - '='
59
+ - - "~>"
82
60
  - !ruby/object:Gem::Version
83
- version: 0.32.1
61
+ version: '0.4'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - '='
66
+ - - "~>"
89
67
  - !ruby/object:Gem::Version
90
- version: 0.32.1
68
+ version: '0.4'
91
69
  - !ruby/object:Gem::Dependency
92
- name: rspec
70
+ name: github-markup
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
73
  - - "~>"
96
74
  - !ruby/object:Gem::Version
97
- version: '3.1'
75
+ version: '1.3'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
80
  - - "~>"
103
81
  - !ruby/object:Gem::Version
104
- version: '3.1'
82
+ version: '1.3'
105
83
  - !ruby/object:Gem::Dependency
106
- name: bundler
84
+ name: pry
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
87
  - - "~>"
110
88
  - !ruby/object:Gem::Version
111
- version: '1.7'
89
+ version: '0.10'
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: '1.7'
96
+ version: '0.10'
119
97
  - !ruby/object:Gem::Dependency
120
98
  name: rake
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
101
  - - "~>"
124
102
  - !ruby/object:Gem::Version
125
- version: '10.0'
103
+ version: '10.5'
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
108
  - - "~>"
131
109
  - !ruby/object:Gem::Version
132
- version: '10.0'
110
+ version: '10.5'
133
111
  - !ruby/object:Gem::Dependency
134
- name: github-markup
112
+ name: redcarpet
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
115
  - - "~>"
138
116
  - !ruby/object:Gem::Version
139
- version: '1.3'
117
+ version: '3.2'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
122
  - - "~>"
145
123
  - !ruby/object:Gem::Version
146
- version: '1.3'
124
+ version: '3.2'
147
125
  - !ruby/object:Gem::Dependency
148
- name: redcarpet
126
+ name: rubocop
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
129
  - - "~>"
152
130
  - !ruby/object:Gem::Version
153
- version: '3.2'
131
+ version: 0.40.0
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
136
  - - "~>"
159
137
  - !ruby/object:Gem::Version
160
- version: '3.2'
138
+ version: 0.40.0
161
139
  - !ruby/object:Gem::Dependency
162
- name: yard
140
+ name: rspec
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
143
  - - "~>"
166
144
  - !ruby/object:Gem::Version
167
- version: '0.8'
145
+ version: '3.4'
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
150
  - - "~>"
173
151
  - !ruby/object:Gem::Version
174
- version: '0.8'
152
+ version: '3.4'
175
153
  - !ruby/object:Gem::Dependency
176
- name: pry
154
+ name: yard
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
157
  - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: '0.10'
159
+ version: '0.8'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
164
  - - "~>"
187
165
  - !ruby/object:Gem::Version
188
- version: '0.10'
166
+ version: '0.8'
189
167
  description: |-
190
168
  This plugin provides native CPU instrumentation
191
169
  for monitoring and metrics collection, including:
192
170
  CPU usage and metrics
193
171
  email: "<sensu-users@googlegroups.com>"
194
172
  executables:
195
- - metrics-user-pct-usage.rb
196
- - metrics-cpu.rb
197
- - metrics-cpu-pcnt-usage.rb
198
- - metrics-cpu-mpstat.rb
199
- - check-cpu.sh
200
173
  - check-cpu.rb
174
+ - metrics-cpu-mpstat.rb
175
+ - metrics-cpu-pcnt-usage.rb
176
+ - metrics-cpu.rb
177
+ - metrics-numastat.rb
178
+ - metrics-user-pct-usage.rb
201
179
  extensions: []
202
180
  extra_rdoc_files: []
203
181
  files:
@@ -209,6 +187,7 @@ files:
209
187
  - bin/metrics-cpu-mpstat.rb
210
188
  - bin/metrics-cpu-pcnt-usage.rb
211
189
  - bin/metrics-cpu.rb
190
+ - bin/metrics-numastat.rb
212
191
  - bin/metrics-user-pct-usage.rb
213
192
  - lib/sensu-plugins-cpu-checks.rb
214
193
  - lib/sensu-plugins-cpu-checks/version.rb
@@ -230,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
230
209
  requirements:
231
210
  - - ">="
232
211
  - !ruby/object:Gem::Version
233
- version: 1.9.3
212
+ version: 2.0.0
234
213
  required_rubygems_version: !ruby/object:Gem::Requirement
235
214
  requirements:
236
215
  - - ">="
@@ -238,8 +217,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
217
  version: '0'
239
218
  requirements: []
240
219
  rubyforge_project:
241
- rubygems_version: 2.4.8
220
+ rubygems_version: 2.5.1
242
221
  signing_key:
243
222
  specification_version: 4
244
223
  summary: Sensu plugins for cpu checks and metrics
245
224
  test_files: []
225
+ has_rdoc:
checksums.yaml.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- �����B���U�� �:�E)!�F�*0W�y��A��2��7�ܺ��N�}g����a�ZM���\�r�y��
2
- |]�Nć��~�)��f�Q_������ ʎd��/���/�vK�{��/4(��j�J�;��;f���I��{��iU�j�s�C΍�B\���x`VY�ۮ}
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file