sensu-plugins-memory-checks 0.0.7 → 0.0.8

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: 7a1d5d0e1938f571decbc1ce64c880e8df3c9dd8
4
- data.tar.gz: 80aa1e740198b518102d025d3a567fdee778e3d9
3
+ metadata.gz: 8c94bd72b630766e66e4c631d4f7e54e58ec9449
4
+ data.tar.gz: b054566c3d4bbac7823dc2c8e79af6c67b479cb8
5
5
  SHA512:
6
- metadata.gz: b74df367aa33f827d401f82442560ef15788dee873a12a54623f8bdcc5ca90a9a1934196c868997630b98201da7932f0a4ee1a977396ceaa21a0aaf94485f5a4
7
- data.tar.gz: 4303b07011fa7bbf82862c02617b4ad13342f37c63383801f464c8f7841a70e17cb88a374d1d986bc4da29f0854f740e0362346a0d319b0529dcd8714d164a43
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
- - check-memory.sh, system may not have /etc/redhat-version
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 / 1024
83
- used_ram /= 1024 / 1024
84
- total_ram /= 1024 / 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
- # mermory-metrics-percent
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 # rubocop:disable all
50
+ def metrics_hash
53
51
  mem = {}
54
52
  memp = {}
55
53
 
@@ -1,7 +1,7 @@
1
1
  #! /usr/bin/env ruby
2
2
  # encoding: UTF-8
3
3
  #
4
- # memory-metrics
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>
@@ -2,7 +2,7 @@ module SensuPluginsMemoryChecks
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 7
5
+ PATCH = 8
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.7
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-08-12 00:00:00.000000000 Z
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