sensu-plugins-oracle 0.10.0 → 0.10.2

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: '0180eaaf08cd1d64683eb23774e8ada5d6231629'
4
- data.tar.gz: 18227b2ec5d75b65a5965b2cc344359d9c661ec8
3
+ metadata.gz: a31b69a8e15bcf7538961e0621455c0232aa9dd2
4
+ data.tar.gz: 65adaaf52e88bde7e2bac300a4ca47a969589416
5
5
  SHA512:
6
- metadata.gz: 8e9e28139e1730f88d08874d961aadaa2241c4d009a472d77f7ac995b3b3b969730b60ab370a9591d8d29fa61d49efb83fe4c91074cff74d8380608135cad300
7
- data.tar.gz: 292a529077cde00501c8b01aff396333159bb3a869ee0ea3529eb0fec229b0b85e411245d753085ebc60605c450bb033a41a85b133070eb0d5f1084d9885a50d
6
+ metadata.gz: 1de475edb24247b6525cfd35c866b014fc6129a753fd6102140dbebf3f39c05d68e832af2df1943cdc7aa37673759f60a40b6c2b507818d6ba08f6c5da5b2df8
7
+ data.tar.gz: ab607191c8455f24b1aa2472831f3d73423f43c1a8100cb7408b85602810e13cbdbd7bf8324a99869763267e948cbbff01efc8706ff007932763355b9111b1f6
@@ -1,3 +1,11 @@
1
+ ## 0.10.0 - 2019-05-12
2
+
3
+ Added:
4
+ - Option to define module that the oracle sessions will use (thanks to [@zalum](https://github.com/zalum))
5
+
6
+ Bug Fixes:
7
+ - Fix use of wrong version constant (thanks to [@aurelije](https://github.com/aurelije))
8
+
1
9
  ## 0.9.1 - 2018-11-25
2
10
 
3
11
  Major:
@@ -17,7 +25,7 @@ Major:
17
25
  - Update to sensu-plugin 2.3
18
26
 
19
27
  Bug Fixes:
20
- - Fix colliding -w short option. Worker count short option is now -W (Thanks to https://github.com/aurelije)
28
+ - Fix colliding -w short option. Worker count short option is now -W (Thanks to [@aurelije](https://github.com/aurelije))
21
29
 
22
30
  ## 0.5.0 - 2017-07-27
23
31
 
@@ -96,7 +96,7 @@ class CheckOracleAlive < Sensu::Plugin::Check::CLI
96
96
  ::SensuPluginsOracle::Session.timeout_properties(config[:timeout])
97
97
 
98
98
  if config[:version]
99
- ok("Version #{SensuPluginsOracle::Version::VER_STRING}")
99
+ ok("Version #{SensuPluginsOracle::VERSION}")
100
100
  return
101
101
  end
102
102
 
@@ -74,8 +74,8 @@ class CheckOracleQuery < Sensu::Plugin::Check::CLI
74
74
  option :query,
75
75
  description: 'Database query to execute',
76
76
  short: '-q QUERY',
77
- long: '--query QUERY',
78
- required: true
77
+ long: '--query QUERY'
78
+ # required: true
79
79
 
80
80
  option :warning,
81
81
  description: 'Warning threshold expression',
@@ -136,7 +136,12 @@ class CheckOracleQuery < Sensu::Plugin::Check::CLI
136
136
  ::SensuPluginsOracle::Session.timeout_properties(config[:timeout])
137
137
 
138
138
  if config[:version]
139
- ok("Version #{SensuPluginsOracle::VERSION::VER_STRING}")
139
+ ok("Version #{SensuPluginsOracle::VERSION}")
140
+ return
141
+ end
142
+
143
+ if config[:query].nil?
144
+ warning("You must supply: -q QUERY")
140
145
  return
141
146
  end
142
147
 
@@ -36,7 +36,7 @@ module SensuPluginsOracle
36
36
  @provide_name_in_result = args[:provide_name_in_result] || false
37
37
  end
38
38
 
39
- def self.parse_from_file(file, db_module)
39
+ def self.parse_from_file(file, db_module=nil)
40
40
  sessions = []
41
41
 
42
42
  File.read(file).each_line do |line|
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsOracle
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.2'
3
3
  end
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.10.0
4
+ version: 0.10.2
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: 2019-05-12 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin