sensu-plugins-cpu-usage 0.0.2 → 0.0.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/check-cpu-usage.rb +2 -2
- data/lib/sensu-plugins-cpu-usage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64151ffb9a2fd17b5f19eb6629c9affa95da24f0
|
|
4
|
+
data.tar.gz: facb0c88c5fdc8ed47fab50bb0ca72e8ad01ceda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c966a9c3a7a432ee712c0648894d1eb33060d2974f5e5d5ce23595b254aa46161ed03ff6b43405dc887d9096b558e215348b1c79508d68a423db94da8aa7f3c6
|
|
7
|
+
data.tar.gz: 9cd5a8692e5e765a9df9299db836dda860a209f70a9a2e84ba8cf769af04595dd6564f4da74d9e437ad75dbd9b0ef60e62a569a235a2bfe75ac2fd72640b332e
|
data/CHANGELOG.md
CHANGED
data/bin/check-cpu-usage.rb
CHANGED
|
@@ -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
|