sensu-plugins-cpu-usage 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4bbb7f54c9a63a1ff45e30b799a8c4ab426a8d6
4
- data.tar.gz: e24bc9a4d898c053ce40a60835ee778b9c429929
3
+ metadata.gz: 64151ffb9a2fd17b5f19eb6629c9affa95da24f0
4
+ data.tar.gz: facb0c88c5fdc8ed47fab50bb0ca72e8ad01ceda
5
5
  SHA512:
6
- metadata.gz: 04c65cff28ffc4d7b465471c50139ce6e050b54d4611ce3c617113fb4efe5fed7159d82343d30e5d7a16fb02ee67b88ebdf886f7620339560964a5f1140dec5a
7
- data.tar.gz: 412251cb5f294fbaa33d26dfe806387be7406a1dc4162e6912b637d79bafc6ce2289a3ddcf74d75ff785be5ba894a2ac9b8330558b4a1a5daf80a041206bac84
6
+ metadata.gz: c966a9c3a7a432ee712c0648894d1eb33060d2974f5e5d5ce23595b254aa46161ed03ff6b43405dc887d9096b558e215348b1c79508d68a423db94da8aa7f3c6
7
+ data.tar.gz: 9cd5a8692e5e765a9df9299db836dda860a209f70a9a2e84ba8cf769af04595dd6564f4da74d9e437ad75dbd9b0ef60e62a569a235a2bfe75ac2fd72640b332e
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ## [0.0.3] - 2016-01-05
9
+ ### Added
10
+ - Fixed typos
11
+
8
12
  ## [0.0.2] - 2016-01-05
9
13
  ### Added
10
14
  - Fixed missing round brackets
@@ -144,9 +144,9 @@ class CheckCpuUsage < Sensu::Plugin::Check::CLI
144
144
 
145
145
  if config["warn_#{metric}".to_sym] and config["crit_#{metric}".to_sym]
146
146
  if value >= config["crit_#{metric}".to_sym]
147
- send_critical(check_name, "CPU #{metric} time is too high - Current: #{value}% (>= #{config["crit_#{metric}".to_sym]}%)") if value >= config["crit_#{metric}".to_sym])
147
+ send_critical(check_name, "CPU #{metric} time is too high - Current: #{value}% (>= #{config["crit_#{metric}".to_sym]}%)") if value >= config["crit_#{metric}".to_sym]
148
148
  elsif value >= config["warn_#{metric}".to_sym]
149
- send_warning(check_name, "High CPU #{metric} time - Current: #{value}% (>= #{config["warn_#{metric}".to_sym]}%)") if value >= config["warn_#{metric}".to_sym])
149
+ send_warning(check_name, "High CPU #{metric} time - Current: #{value}% (>= #{config["warn_#{metric}".to_sym]}%)") if value >= config["warn_#{metric}".to_sym]
150
150
  else
151
151
  send_ok(check_name, "CPU #{metric} time is normal - Current: #{value}% (<= #{config["warn_#{metric}".to_sym]}%)")
152
152
  end
@@ -2,7 +2,7 @@ module SensuPluginsCpuUsage
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
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-cpu-usage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Cerutti