sensu-plugins-jolokia 0.0.4 → 0.0.5

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: 929c619e28574b0b3947ae5b989f1122c18cd708
4
- data.tar.gz: 3abdec3057d919a9e468d602e3ed14bd0689c8e8
3
+ metadata.gz: a8048d47dfcb3c3f08284172910a644050513851
4
+ data.tar.gz: 7ec8afa41a6cec9277c6fe21fba38d85b2a0a4c2
5
5
  SHA512:
6
- metadata.gz: 376d7e43a6552790a331ab86bc4064d69c307036ba59a595c8b858cf864c999a88205c105a00673b7e2efeb498ef89a62e689215f0a230ab0a1808b626703912
7
- data.tar.gz: 6735aafe70a8a080449432a4d9046013776e066cd8cd012a5afe6cb8bcb1db95f8db10724b95dd5ce393bf89ed41e6dc1fe38693405299dc57a8d7ed1f8571e9
6
+ metadata.gz: 0ec1d612c96fba56b31b6710e933096e7618e8e05bc5c4df0d147f5d168e950123efe8cfb07b47a031235e746e73662446ab26891752259044ccf24f490eea12
7
+ data.tar.gz: 46c75ee96a63bec1aadad0b502ff486daf692a655aeca58ad3180a90aa71180f318ad9381118a28e4c91663a9ee8559e28b17df3617feac511620cbe740f9f65
@@ -82,9 +82,9 @@ class CheckJvmMemoryPcnt < Sensu::Plugin::Check::CLI
82
82
  used = (jolokia_response['value']['used'])
83
83
  pct_used = (used.to_f / max.to_f * 100).to_i
84
84
 
85
- if pct_committed > config[:crit].to_i
85
+ if pct_used > config[:crit].to_i
86
86
  critical "Java #{config[:type].upcase} Memory: Committed #{pct_committed}%, Used #{pct_used}%"
87
- elsif pct_committed > config[:warn].to_i
87
+ elsif pct_used > config[:warn].to_i
88
88
  warning "Java #{config[:type].upcase} Memory: Committed #{pct_committed}%, Used #{pct_used}%"
89
89
  else
90
90
  ok "Java #{config[:type].upcase} Memory: Committed #{pct_committed}%, Used #{pct_used}%"
@@ -2,7 +2,7 @@ module SensuPluginsJolokia
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-jolokia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin