sensu-run-check 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sensu-run-check/runner.rb +2 -0
- data/lib/sensu-run-check/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876668cde4ac4246658523ddf225769d69039f4e
|
4
|
+
data.tar.gz: 76ca161f468c5764ee69d644b445ec44d8e76abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9a59e9e9701513ce47c4f4eb840b63939eeef8fe09bfd476b098c98f9852b3973e65e7a4b74e5733179d46faa2349fb3eb761828b4b70587555e334a06f28f4
|
7
|
+
data.tar.gz: 70c2a8618639fb41939a1163cca42586eeced4af5df1040eef5b61d8c04e265a77745f0cdae22b550da72580e78719c4c45cf7e601a0b24ea963c31e5e1ce366
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Sensu Run Check
|
2
2
|
|
3
|
-
Often after just doing a change on servers you want to just be sure that they’re all going to pass a certain or all (
|
3
|
+
Often after just doing a change on servers you want to just be sure that they’re all going to pass a certain or all [Sensu](http://sensuapp.org) checks. This gem exposes Sensu checks to be executed local on the command line.
|
4
4
|
|
5
5
|
_WARNING_ This is very much a hack and will break with other versions* of Sensu!
|
6
6
|
|
@@ -39,6 +39,8 @@ module SensuRunCheck
|
|
39
39
|
statuses << status
|
40
40
|
puts "#{checkname} #{status} #{stdout}"
|
41
41
|
end
|
42
|
+
# Exit with critical if there is any critical, otherwise exit mith the highest.
|
43
|
+
exit(2) if statuses.include?(2)
|
42
44
|
exit(statuses.max)
|
43
45
|
else
|
44
46
|
stdout, status = s.run_check(options[:run_check])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-run-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rickard von Essen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu
|