sensu-plugins-process-checks 0.0.6 → 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: d660f3baaa8a58c1e650df9362856dfae1f9ba6d
4
- data.tar.gz: 51a2c180c7739e02928afc398aa9b02e140538a2
3
+ metadata.gz: 5f15fc531214b09f781c533578d443bb4365b6da
4
+ data.tar.gz: c10670a3beb7f91a1f3eb4e8b08c673a47d497c1
5
5
  SHA512:
6
- metadata.gz: 6d616ff7316378223b2886efb642cc0b82f68ed3d5891d4712e581bc524e0fe9069e940a71859a9a2d80df690695f174a723867c0e2e6d007e24dc578322b63b
7
- data.tar.gz: 46aa8151e54b798bb722d81e00db1d74a1ee5c118520d78fc472ddd07c75c1f042de2712ff278d3a1f569bfa6687186f864826abdd2df132566f684564db484c
6
+ metadata.gz: bfaac1db94ea36f55d45a4cbc085e5db88e9268cee70fd163521c959cc241a8120b9403d03e0fe018cfe1cb9724c8e5494516df38ce21b4dfea8365f9608ffd5
7
+ data.tar.gz: e96f93533cf597ea4bbb6cfa4b3ba2b320f207a8efefa0e47bba8c3ecc5755eb01ad2b3b4191f816356ebf8703068de8bde0a61778ebf3a4e101326cf6e6c86e
data/CHANGELOG.md CHANGED
@@ -3,7 +3,20 @@ 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-21
9
+ ### Fixed
10
+ - metrics-per-process.py: avoid false alerts by adding exception handling for `OSError` errors
11
+ - check-process.rb: avoid 'invalid byte sequence' messages by adding configurable encoding which defaults to `ASCII-8BIT`
12
+
13
+ ### Added
14
+ - check-process-restart.rb: added support for Red Hat "needs-restarting" script
15
+
16
+ ### Changed
17
+ - Updated Rubocop to 0.40, applied auto-correct
18
+ - Remove Ruby 1.9.3 support; add Ruby 2.3.0 support to test matrix
19
+
7
20
 
8
21
  ## [0.0.6] - 2015-08-24
9
22
  ### Fixed
@@ -14,7 +27,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
14
27
  - include hostname in default scheme in metrics-processes-threads-count
15
28
 
16
29
  ### Changed
17
- rename process-uptime metrics.sh -> metrics-process-uptime.sh
30
+ - rename process-uptime metrics.sh -> metrics-process-uptime.sh
18
31
 
19
32
  ## [0.1.0] - 2015-08-11
20
33
  ### Added
@@ -35,20 +48,17 @@ rename process-uptime metrics.sh -> metrics-process-uptime.sh
35
48
  - puts deps in order in Gemspec
36
49
 
37
50
  ## [0.0.2] - 2015-06-03
38
-
39
51
  ### Fixed
40
52
  - added binstubs
41
53
 
42
54
  ### Changed
43
55
  - removed cruft from /lib
44
56
 
45
- ## [0.0.1] - [2015-05-01]
46
-
57
+ ## 0.0.1 - [2015-05-01]
47
58
  ### Added
48
59
  - initial stable release
49
60
 
50
- ## [0.0.1.alpha.6]
51
-
61
+ ## 0.0.1.alpha.6
52
62
  ### Added
53
63
  - add chef provisioner to Vagrantfile
54
64
  - add metadata to gemspec
@@ -56,26 +66,22 @@ rename process-uptime metrics.sh -> metrics-process-uptime.sh
56
66
  ### Fixed
57
67
  - fix rubocop errors
58
68
 
59
- ## [0.0.1.alpha.5]
60
-
69
+ ## 0.0.1.alpha.5
61
70
  ### Added
62
71
  - add new check for process uptime metrics
63
72
 
64
- ## [0.0.1.alpha.4]
65
-
73
+ ## 0.0.1.alpha.4
66
74
  ### Changed
67
75
  - convert scrips to sys-proctable gem for platform independence
68
76
 
69
- ## [0.0.1-alpha.3]
70
-
77
+ ## 0.0.1-alpha.3
71
78
  ### Added
72
79
  - add proc-status-metrics
73
80
 
74
81
  ### Changed
75
82
  - change proc-status-metrics to process-status-metrics
76
83
 
77
- ## [0.0.1-alpha.2]
78
-
84
+ ## 0.0.1-alpha.2
79
85
  ### Changed
80
86
  - bump Vagrant to Chef 6.6
81
87
  - update LICENSE and gemspec authors
@@ -85,8 +91,7 @@ rename process-uptime metrics.sh -> metrics-process-uptime.sh
85
91
  - add required Ruby version *>= 1.9.3*
86
92
  - add test/spec_help.rb
87
93
 
88
- ## [0.1.0-alpha.1]
89
-
94
+ ## 0.1.0-alpha.1
90
95
  - baseline release identical to **sensu-community-plugins** repo
91
96
 
92
97
  ### Changed
@@ -98,7 +103,9 @@ rename process-uptime metrics.sh -> metrics-process-uptime.sh
98
103
  - built against 1.9.3, 2.0, 2.1
99
104
  - cryptographically signed
100
105
 
101
- [unreleased]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.5...HEAD
106
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/1.0.0...HEAD
107
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.6...1.0.0
108
+ [0.0.6]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.5...0.0.6
102
109
  [0.0.5]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.4...0.0.5
103
110
  [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.3...0.0.4
104
111
  [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.2...0.0.3
data/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-process-checks)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-process-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-process-checks)
8
- [![Codeship Status for sensu-plugins/sensu-plugins-process-checks](https://codeship.com/projects/feb27000-d25e-0132-6aab-4ad10baf29cc/status?branch=master)](https://codeship.com/projects/77521)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -13,7 +13,7 @@
13
13
  # WARNING if 1 process requires a restart
14
14
  #
15
15
  # PLATFORMS:
16
- # Linux (Debian based distributions)
16
+ # Linux
17
17
  #
18
18
  # DEPENDENCIES:
19
19
  # gem: sensu-plugin
@@ -26,8 +26,9 @@
26
26
  # check-process-restart.rb -w 2 -c 5
27
27
  #
28
28
  # NOTES:
29
- # This will only work on Debian based distributions and requires the
30
- # debian-goodies package.
29
+ # This will only work on Debian or Red Hat-based distributions.
30
+ # In the case of Debian-based distributions, the debian-goodies
31
+ # package will need to be installed.
31
32
  #
32
33
  # Also make sure the user "sensu" can sudo without password
33
34
  #
@@ -53,7 +54,10 @@ class CheckProcessRestart < Sensu::Plugin::Check::CLI
53
54
  default: 2
54
55
 
55
56
  # Debian command to run
56
- CHECK_RESTART = '/usr/sbin/checkrestart'
57
+ CHECK_RESTART = '/usr/sbin/checkrestart'.freeze
58
+
59
+ # Red Hat command to run
60
+ NEEDS_RESTARTING = '/usr/bin/needs-restarting'.freeze
57
61
 
58
62
  # Set path for the checkrestart script
59
63
  #
@@ -68,6 +72,13 @@ class CheckProcessRestart < Sensu::Plugin::Check::CLI
68
72
  File.exist?('/etc/debian_version') && File.exist?(CHECK_RESTART)
69
73
  end
70
74
 
75
+ # Check if we can run needs-restarting script
76
+ # @return [Boolean]
77
+ #
78
+ def needs_restarting?
79
+ File.exist?(NEEDS_RESTARTING)
80
+ end
81
+
71
82
  # Run checkrestart and parse process(es) and pid(s)
72
83
  # @return [Hash]
73
84
  def run_checkrestart
@@ -92,21 +103,59 @@ class CheckProcessRestart < Sensu::Plugin::Check::CLI
92
103
  checkrestart_hash
93
104
  end
94
105
 
106
+ # Run needs-restarting and parse process(es) and pid(s)
107
+ # @return [Hash]
108
+ def run_needs_restarting
109
+ needs_restarting_hash = { found: '', pids: [] }
110
+
111
+ out = `sudo #{NEEDS_RESTARTING} 2>&1`
112
+ if $CHILD_STATUS.to_i != 0
113
+ needs_restarting_hash[:found] = "Failed to run needs-restarting: #{out}"
114
+ else
115
+ needs_restarting_hash[:found] = `sudo #{NEEDS_RESTARTING} | wc -l | tr -d "\n"`
116
+
117
+ out.lines do |l|
118
+ m = /(\d+)\s:\s(.*)$/.match(l)
119
+
120
+ if m
121
+ needs_restarting_hash[:pids] << { m[1] => m[2] }
122
+ end
123
+ end
124
+ end
125
+ needs_restarting_hash
126
+ end
127
+
95
128
  # Main run method for the check
96
129
  #
97
130
  def run
98
- unless checkrestart?
99
- unknown "Can't seem to find checkrestart. This check only works in a Debian based distribution and you need debian-goodies package installed"
100
- end
131
+ if checkrestart?
132
+ checkrestart_out = run_checkrestart
133
+
134
+ if /^Failed/ =~ checkrestart_out[:found]
135
+ unknown checkrestart_out[:found]
136
+ end
101
137
 
102
- checkrestart_out = run_checkrestart
103
- if /^Failed/.match(checkrestart_out[:found])
104
- unknown checkrestart_out[:found]
138
+ message JSON.generate(checkrestart_out)
139
+ found = checkrestart_out[:found].to_i
140
+
141
+ warning if found >= config[:warn].to_i && found < config[:crit].to_i
142
+ critical if found >= config[:crit].to_i
143
+ ok
144
+ elsif needs_restarting?
145
+ needs_restarting_out = run_needs_restarting
146
+
147
+ if /^Failed/ =~ needs_restarting_out[:found]
148
+ unknown needs_restarting_out[:found]
149
+ end
150
+
151
+ message JSON.generate(needs_restarting_out)
152
+ found = needs_restarting_out[:found].to_i
153
+
154
+ warning if found >= config[:warn].to_i && found < config[:crit].to_i
155
+ critical if found >= config[:crit].to_i
156
+ ok
157
+ else
158
+ unknown "Can't seem to find either checkrestart or needs-restarting. For checkrestart, you will need to install the debian-goodies package."
105
159
  end
106
- message JSON.generate(checkrestart_out)
107
- found = checkrestart_out[:found].to_i
108
- warning if found >= config[:warn].to_i && found < config[:crit].to_i
109
- critical if found >= config[:crit].to_i
110
- ok
111
160
  end
112
161
  end
data/bin/check-process.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #! /usr/bin/env ruby
2
+ # encoding: UTF-8
2
3
  #
3
4
  # check-process
4
5
  #
@@ -24,10 +25,10 @@
24
25
  #
25
26
  # USAGE:
26
27
  # # chef-client is running
27
- # check-procs -p chef-client -W 1
28
+ # check-process.rb -p chef-client -W 1
28
29
  #
29
30
  # # there are not too many zombies
30
- # check-procs -s Z -w 5 -c 10
31
+ # check-process.rb -s Z -w 5 -c 10
31
32
  #
32
33
  # NOTES:
33
34
  #
@@ -165,6 +166,11 @@ class CheckProcess < Sensu::Plugin::Check::CLI
165
166
  proc: proc(&:to_i),
166
167
  description: 'Match processes cpu time that is younger than this, in SECONDS'
167
168
 
169
+ option :encoding,
170
+ description: 'Explicit encoding when reading process list',
171
+ long: '--encoding ENCODING',
172
+ default: 'ASCII-8BIT'
173
+
168
174
  # Read the pid file
169
175
  # @param path [String] the path to the pid file, including the file
170
176
  def read_pid(path)
@@ -178,7 +184,7 @@ class CheckProcess < Sensu::Plugin::Check::CLI
178
184
  # read the output of a command
179
185
  # @param cmd [String] the command to read the output from
180
186
  def read_lines(cmd)
181
- IO.popen(cmd + ' 2>&1') do |child|
187
+ IO.popen(cmd + ' 2>&1', external_encoding: config[:encoding]) do |child|
182
188
  child.read.split("\n")
183
189
  end
184
190
  end
@@ -236,7 +242,7 @@ class CheckProcess < Sensu::Plugin::Check::CLI
236
242
 
237
243
  # The main function
238
244
  #
239
- def run # rubocop:disable all
245
+ def run
240
246
  procs = acquire_procs
241
247
 
242
248
  if config[:file_pid] && (file_pid = read_pid(config[:file_pid]))
@@ -48,7 +48,7 @@ class ThreadsCount < Sensu::Plugin::Check::CLI
48
48
  default: 32_000,
49
49
  proc: proc(&:to_i)
50
50
 
51
- PROCTABLE_MSG = 'sys-proctable version newer than 0.9.5 is required for counting threads with -t or --threads'
51
+ PROCTABLE_MSG = 'sys-proctable version newer than 0.9.5 is required for counting threads with -t or --threads'.freeze
52
52
 
53
53
  # Exit with an unknown if sys-proctable is not high enough to support counting threads.
54
54
  def check_proctable_version
@@ -58,7 +58,9 @@ class ThreadsCount < Sensu::Plugin::Check::CLI
58
58
  # Takes a value to be tested as an integer. If a new Integer instance cannot be created from it, return 1.
59
59
  # See the comments on get_process_threads() for why 1 is returned.
60
60
  def test_int(i)
61
- return Integer(i) rescue return 1
61
+ return Integer(i)
62
+ rescue
63
+ return 1
62
64
  end
63
65
 
64
66
  # Takes a process struct from Sys::ProcTable.ps() as an argument
@@ -66,7 +68,7 @@ class ThreadsCount < Sensu::Plugin::Check::CLI
66
68
  # Returns the number of processes in those fields.
67
69
  # Otherwise, returns 1 as all processes are assumed to have at least one thread.
68
70
  def get_process_threads(p)
69
- if p.respond_to?(:nlwp)
71
+ if p.respond_to?(:nlwp) # rubocop:disable Style/GuardClause
70
72
  return test_int(p.nlwp)
71
73
  elsif p.respond_to?(:thread_count)
72
74
  return test_int(p.thread_count)
@@ -94,10 +94,14 @@ def find_pids_from_name(process_name):
94
94
  pids = []
95
95
  for pid in pids_in_proc:
96
96
  path = PROC_ROOT_DIR + pid
97
- if 'comm' in os.listdir(path):
98
- file_handler = open(path + '/comm', 'r')
99
- if file_handler.read().rstrip() == process_name:
100
- pids.append(int(pid))
97
+ try:
98
+ if 'comm' in os.listdir(path):
99
+ file_handler = open(path + '/comm', 'r')
100
+ if file_handler.read().rstrip() == process_name:
101
+ pids.append(int(pid))
102
+ except OSError, e:
103
+ if e.errno == 2:
104
+ pass
101
105
  return pids
102
106
 
103
107
  def stats_per_pid(pid):
@@ -109,10 +109,10 @@ class ProcStatus < Sensu::Plugin::Metric::CLI::Graphite
109
109
  metric_names = config[:metrics].split(',')
110
110
  proc_status_lines = `cat /proc/#{pid}/status`.split("\n")
111
111
 
112
- out = { "#{cmdline}" => {} }
112
+ out = { cmdline.to_s => {} }
113
113
 
114
114
  metric_names.each do |m|
115
- line = proc_status_lines.select { |x| /^#{m}/.match(x) }.first # rubocop:disable all
115
+ line = proc_status_lines.find { |x| /^#{m}/.match(x) }
116
116
  val = line ? line.split("\t")[1].to_i : nil
117
117
  out[cmdline.to_s][m] = val
118
118
  end
@@ -122,7 +122,7 @@ class ProcStatus < Sensu::Plugin::Metric::CLI::Graphite
122
122
  # Main functino
123
123
  #
124
124
  def run
125
- fail 'You must supply -u USER or -p PROCESSNAME' unless config[:user] || config[:processname]
125
+ raise 'You must supply -u USER or -p PROCESSNAME' unless config[:user] || config[:processname]
126
126
  metrics = {}
127
127
  pgrep_output = `#{pgrep_command}`
128
128
  pids = acquire_valid_pids(pgrep_output)
@@ -51,7 +51,7 @@ class ProcessesThreadsCount < Sensu::Plugin::Metric::CLI::Graphite
51
51
  boolean: true,
52
52
  default: false
53
53
 
54
- PROCTABLE_MSG = 'sys-proctable version newer than 0.9.5 is required for counting threads with -t or --threads'
54
+ PROCTABLE_MSG = 'sys-proctable version newer than 0.9.5 is required for counting threads with -t or --threads'.freeze
55
55
 
56
56
  # Exit with an unknown if sys-proctable is not high enough to support counting threads.
57
57
  def check_proctable_version
@@ -61,7 +61,9 @@ class ProcessesThreadsCount < Sensu::Plugin::Metric::CLI::Graphite
61
61
  # Takes a value to be tested as an integer. If a new Integer instance cannot be created from it, return 1.
62
62
  # See the comments on get_process_threads() for why 1 is returned.
63
63
  def test_int(i)
64
- return Integer(i) rescue return 1
64
+ return Integer(i)
65
+ rescue
66
+ return 1
65
67
  end
66
68
 
67
69
  # Takes a process struct from Sys::ProcTable.ps() as an argument
@@ -69,7 +71,7 @@ class ProcessesThreadsCount < Sensu::Plugin::Metric::CLI::Graphite
69
71
  # Returns the number of processes in those fields.
70
72
  # Otherwise, returns 1 as all processes are assumed to have at least one thread.
71
73
  def get_process_threads(p)
72
- if p.respond_to?(:nlwp)
74
+ if p.respond_to?(:nlwp) # rubocop:disable Style/GuardClause
73
75
  return test_int(p.nlwp)
74
76
  elsif p.respond_to?(:thread_count)
75
77
  return test_int(p.thread_count)
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsProcessChecks
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 6
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-process-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
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-08-27 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-06-21 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: english
@@ -50,16 +28,16 @@ dependencies:
50
28
  name: sensu-plugin
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - '='
31
+ - - "~>"
54
32
  - !ruby/object:Gem::Version
55
- version: 1.2.0
33
+ version: '1.2'
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: 1.2.0
40
+ version: '1.2'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: sys-proctable
65
43
  requirement: !ruby/object:Gem::Requirement
@@ -162,16 +140,16 @@ dependencies:
162
140
  name: rubocop
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - '='
143
+ - - "~>"
166
144
  - !ruby/object:Gem::Version
167
- version: 0.32.1
145
+ version: 0.40.0
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.32.1
152
+ version: 0.40.0
175
153
  - !ruby/object:Gem::Dependency
176
154
  name: redcarpet
177
155
  requirement: !ruby/object:Gem::Requirement
@@ -200,15 +178,18 @@ dependencies:
200
178
  - - "~>"
201
179
  - !ruby/object:Gem::Version
202
180
  version: '0.8'
203
- description: Sensu plugins for checking running processes
181
+ description: |-
182
+ This plugin provides native process instrumentation
183
+ for monitoring and metrics collection, including:
184
+ process status, uptime, thread count, and others
204
185
  email: "<sensu-users@googlegroups.com>"
205
186
  executables:
206
- - metrics-processes-threads-count.rb
207
- - metrics-process-status.rb
208
- - check-threads-count.rb
209
- - check-process.rb
210
- - check-process-restart.rb
211
187
  - check-cmd.rb
188
+ - check-process-restart.rb
189
+ - check-process.rb
190
+ - check-threads-count.rb
191
+ - metrics-process-status.rb
192
+ - metrics-processes-threads-count.rb
212
193
  extensions: []
213
194
  extra_rdoc_files: []
214
195
  files:
@@ -243,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
243
224
  requirements:
244
225
  - - ">="
245
226
  - !ruby/object:Gem::Version
246
- version: 1.9.3
227
+ version: 2.0.0
247
228
  required_rubygems_version: !ruby/object:Gem::Requirement
248
229
  requirements:
249
230
  - - ">="
@@ -251,8 +232,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
232
  version: '0'
252
233
  requirements: []
253
234
  rubyforge_project:
254
- rubygems_version: 2.4.8
235
+ rubygems_version: 2.5.1
255
236
  signing_key:
256
237
  specification_version: 4
257
238
  summary: Sensu plugins for checking running processes
258
239
  test_files: []
240
+ has_rdoc:
checksums.yaml.gz.sig DELETED
@@ -1 +0,0 @@
1
- N,%H���ڝ��.`����,�� �(z�ʗ��C`C�����^;W$���~�oe��n���H�W�e�PP^Fx�v�2q:�UΎ� 2J�ؚ�d�� ��Yf� �`n�jL 3,䛬����+.ꙧ 8�/�c����Q�'\W���#�V�ñ߂b�����\͉��ģ(]�@�e�t�ih��ב��-����2�F�Iܠ�Lr �\�OO�D|
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- '�A媛��v�F�&Y1�m"�
2
- ���q��U]#����Y��{D$�H�����
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- dY#)�+�ɾQ��!G���B��˰
2
- �hx؄W,ǃ���ͬ�������=��ó�f��Ȟ����i%ՆW���Cy�s�_�fWqU�