sensu-plugins-oracle 0.3.2 → 0.3.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/bin/check-oracle-query.rb +6 -5
- data/lib/sensu-plugins-oracle/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: 25822ce0b2c2cde553fd4c3cb5bc55cf2ce5173c
|
|
4
|
+
data.tar.gz: 0e993795d94c73f3780890ec737175a79454b7f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c693b59e6f1ebda65d9cc2af11b98b7b37d76c4d310385f6db083c82dcb2d22b402c439caf23abdc17f611179ec48ce15bfa117bd7f3ecb1377bb23a4ebdca33
|
|
7
|
+
data.tar.gz: 35c54f39ec01c98405515b84b7beeb6d3bd0fb248a7e3ae60c2635dd950a418c7cb64733ee3e54f3d76500d029afd489984e8a5334a151d73bdfc240437059ac
|
data/bin/check-oracle-query.rb
CHANGED
|
@@ -159,11 +159,12 @@ class CheckOracleQuery < Sensu::Plugin::Check::CLI
|
|
|
159
159
|
messages = [header.join(', ')]
|
|
160
160
|
|
|
161
161
|
[:warning, :critical].each do |type|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
if results[type].size > 0
|
|
163
|
+
method = type
|
|
164
|
+
messages << nil
|
|
165
|
+
messages << type.to_s.capitalize
|
|
166
|
+
messages << results[type].compact.sort.join("\n\n")
|
|
167
|
+
end
|
|
167
168
|
end
|
|
168
169
|
|
|
169
170
|
send(method, messages.join("\n"))
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-oracle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
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-10-
|
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sensu-plugin
|