sensu-plugins-memory-checks 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +5 -1
- data/bin/check-ram.rb +3 -3
- data/bin/metrics-memory-percent.rb +3 -5
- data/bin/metrics-memory.rb +2 -4
- data/lib/sensu-plugins-memory-checks/version.rb +1 -1
- metadata +2 -2
- 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: 8c94bd72b630766e66e4c631d4f7e54e58ec9449
|
4
|
+
data.tar.gz: b054566c3d4bbac7823dc2c8e79af6c67b479cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 533c44aa66fb2bff6f4a819e2faaa953d5b9a3872ebaf788a8fe04b22358d97d02471b038d492529f6b991750ed9ac8cfcefc7e7ed7974ca80210e2fd75642c0
|
7
|
+
data.tar.gz: 594ea7e250f31887b786fed39b883f70b4f53729749559f115aa1f38f7786eb18bdf5f13773324797b298c1e8e64832568064d7e7064539a73e0144d922f7029
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -5,9 +5,13 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased][unreleased]
|
7
7
|
|
8
|
+
## [0.0.8] - 2015-09-29
|
9
|
+
### Fixed
|
10
|
+
- check-ram.rb incorrectly calculated ram
|
11
|
+
|
8
12
|
## [0.0.7] - 2015-08-11
|
9
13
|
### Fixed
|
10
|
-
|
14
|
+
- check-memory.sh, system may not have /etc/redhat-version
|
11
15
|
|
12
16
|
### Changed
|
13
17
|
- bump rubocop
|
data/bin/check-ram.rb
CHANGED
@@ -79,9 +79,9 @@ class CheckRAM < Sensu::Plugin::Check::CLI
|
|
79
79
|
|
80
80
|
if config[:megabytes]
|
81
81
|
# free_ram is returned in Bytes. see: https://github.com/threez/ruby-vmstat/blob/master/lib/vmstat/memory.rb
|
82
|
-
free_ram /= 1024
|
83
|
-
used_ram /= 1024
|
84
|
-
total_ram /= 1024
|
82
|
+
free_ram /= 1024 * 1024
|
83
|
+
used_ram /= 1024 * 1024
|
84
|
+
total_ram /= 1024 * 1024
|
85
85
|
if config[:free]
|
86
86
|
ram = free_ram
|
87
87
|
message "#{ram} megabytes of RAM left"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
3
|
#
|
4
|
-
#
|
4
|
+
# metrics-memory-percent
|
5
5
|
#
|
6
6
|
# DESCRIPTION:
|
7
7
|
#
|
@@ -13,11 +13,9 @@
|
|
13
13
|
#
|
14
14
|
# DEPENDENCIES:
|
15
15
|
# gem: sensu-plugin
|
16
|
-
# gem: socket
|
17
16
|
#
|
18
17
|
# USAGE:
|
19
|
-
#
|
20
|
-
# NOTES:
|
18
|
+
# ./metrics-memory-percent.rb
|
21
19
|
#
|
22
20
|
# LICENSE:
|
23
21
|
# Copyright 2012 Sonian, Inc <chefs@sonian.net>
|
@@ -49,7 +47,7 @@ class MemoryGraphite < Sensu::Plugin::Metric::CLI::Graphite
|
|
49
47
|
ok
|
50
48
|
end
|
51
49
|
|
52
|
-
def metrics_hash
|
50
|
+
def metrics_hash
|
53
51
|
mem = {}
|
54
52
|
memp = {}
|
55
53
|
|
data/bin/metrics-memory.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
3
|
#
|
4
|
-
# memory
|
4
|
+
# metrics-memory
|
5
5
|
#
|
6
6
|
# DESCRIPTION:
|
7
7
|
#
|
@@ -13,11 +13,9 @@
|
|
13
13
|
#
|
14
14
|
# DEPENDENCIES:
|
15
15
|
# gem: sensu-plugin
|
16
|
-
# gem: socket
|
17
16
|
#
|
18
17
|
# USAGE:
|
19
|
-
#
|
20
|
-
# NOTES:
|
18
|
+
# ./metrics-memory.rb
|
21
19
|
#
|
22
20
|
# LICENSE:
|
23
21
|
# Copyright 2012 Sonian, Inc <chefs@sonian.net>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-memory-checks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu Plugins and contributors
|
@@ -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-09-29 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
metadata.gz.sig
CHANGED
Binary file
|