sensu-plugins-process-checks 2.1.0 → 2.2.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 +7 -2
- data/bin/metrics-per-process.py +5 -3
- data/lib/sensu-plugins-process-checks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09b733d6bdedcd78d3eb5d607b8efd1ca58e67ec
|
4
|
+
data.tar.gz: 1efa3e75c4a73b034eaf991b8bd0456b93050f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8addda414b9a6c4fa6eab9df192cbdf3aee9094c737a0f8a4b83e39caa435ec71c00888234425e633a3a427564fd46859b65f1d7c92eee4f36fb227db7659803
|
7
|
+
data.tar.gz: 6cfd6704429d9c5ac42c9a1e88db52508bf1ff881c62e2778753839fcdb7262bcad851d8ea1f1ba077b18088e033f5ef657b4d6e624af9f2fada17b0cd5c7059
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
## [2.2.0] - 2017-05-28
|
8
|
+
### Changed
|
9
|
+
- metrics-per-process.py: Fallback to importing Counter from backport_collections for Python 2.6 support.
|
10
|
+
|
7
11
|
## [2.1.0] - 2017-05-25
|
8
12
|
### Added
|
9
13
|
- metrics-per-process.rb: Binstub for metrics-per-process.py
|
@@ -118,8 +122,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
118
122
|
- built against 1.9.3, 2.0, 2.1
|
119
123
|
- cryptographically signed
|
120
124
|
|
121
|
-
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/2.
|
122
|
-
[2.
|
125
|
+
[unreleased]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/2.2.0...HEAD
|
126
|
+
[2.2.0]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/2.1.0...2.2.0
|
127
|
+
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/2.0.0...2.1.0
|
123
128
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/1.0.0...2.0.0
|
124
129
|
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.6...1.0.0
|
125
130
|
[0.0.6]: https://github.com/sensu-plugins/sensu-plugins-process-checks/compare/0.0.5...0.0.6
|
data/bin/metrics-per-process.py
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
# Linux
|
12
12
|
#
|
13
13
|
# DEPENDENCIES:
|
14
|
-
# Python 2.
|
14
|
+
# Python 2.6+ (untested on Python3, should work though)
|
15
15
|
# Python module: psutil https://pypi.python.org/pypi/psutil
|
16
16
|
#
|
17
17
|
# USAGE:
|
@@ -68,8 +68,11 @@ import optparse
|
|
68
68
|
import psutil
|
69
69
|
import sys
|
70
70
|
import time
|
71
|
-
from collections import Counter
|
72
71
|
|
72
|
+
try:
|
73
|
+
from collections import Counter
|
74
|
+
except ImportError:
|
75
|
+
from backport_collections import Counter
|
73
76
|
|
74
77
|
PROC_ROOT_DIR = '/proc/'
|
75
78
|
TCP_CONN_STATUSES = [
|
@@ -221,4 +224,3 @@ def main():
|
|
221
224
|
#
|
222
225
|
if __name__ == '__main__':
|
223
226
|
main()
|
224
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-process-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.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: 2017-05-
|
11
|
+
date: 2017-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: english
|