sensu-plugins-mysql 2.5.1 → 2.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 837089dfe4f5943167e494fe71bbbe799a441be04073ca8813b84a968ab98b09
4
- data.tar.gz: f9dcbdfaabd1472c9d23960c954dcbf35a4f5181c73a7357e9b5c0f65265fb94
3
+ metadata.gz: ba2c83d93364ab17b2ff50509b773fd06cf27874b154c812cfd205e24e01fe4a
4
+ data.tar.gz: 9354135db5e40d55d8e9ff44c095a6d7bd6287b5d8b5989937deaffa59c62b65
5
5
  SHA512:
6
- metadata.gz: 3e9046d1e474a87b7500c0e2cb805bec7a389d6a923efc2df277947cbc10afc9b8f46f8ec1049c0556209e023776a7b6f2287a587e1cd9eb57613939b5cef185
7
- data.tar.gz: d4c0ee6a07fb14d5204ac1336cd934a95f0637d0fdae75a8549895409c00115e972d8974c85fe94950939527c6e64619f7080b3c68daabc3c4e8e7690a1a0c82
6
+ metadata.gz: 15b9d19c2f41c2ff0c7397ff950c7addcacae961e0579a60db86f0238f3608885f0a55b2f3678b7dee94a6094ad5a809a4de286134c5efb90e0f33f3fea9c81c
7
+ data.tar.gz: 866bf72082604e8743b58c8eba700ee66be98fba9dc36098b68103b018763b7779c0a44ff30e24968e9d655e1d755fbf06f900959cd37df58a07220bf8d7208c
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.6.0] - 2018-11-17
9
+ ### Added
10
+ - check-mysql-select-count.rb: fleshed out config hash to read from ini file if specified (@fuzzy-logic-zach)
11
+
8
12
  ## [2.5.1] - 2018-06-21
9
13
  ### Fixed
10
14
  - check-mysql-alive.rb: allow specifying a value for `-i` (@scones)
@@ -133,7 +137,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
133
137
  ### Added
134
138
  - initial release
135
139
 
136
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.5.1...HEAD
140
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.6.0...HEAD
141
+ [2.6.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.5.1...2.6.0
137
142
  [2.5.1]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.5.0...2.5.1
138
143
  [2.5.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.4.0...2.5.0
139
144
  [2.4.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.3.0...2.4.0
@@ -18,8 +18,7 @@ class MysqlSelectCountCheck < Sensu::Plugin::Check::CLI
18
18
  option :host,
19
19
  short: '-h HOST',
20
20
  long: '--host HOST',
21
- description: 'MySQL Host to connect to',
22
- required: true
21
+ description: 'MySQL Host to connect to'
23
22
 
24
23
  option :port,
25
24
  short: '-P PORT',
@@ -85,11 +84,13 @@ class MysqlSelectCountCheck < Sensu::Plugin::Check::CLI
85
84
  section = ini[config[:ini_section]]
86
85
  db_user = section['user']
87
86
  db_pass = section['password']
87
+ config[:host] = section['host']
88
+ config[:socket] = section['socket']
88
89
  else
89
90
  db_user = config[:username]
90
91
  db_pass = config[:password]
91
92
  end
92
- raise "invalid query : #{config[:query]}" unless config[:query] =~ /^select\s+count\(\s*\*\s*\)/i
93
+ raise 'Please specify hostname using -h or in mysql.cnf file' unless config[:host]
93
94
 
94
95
  db = Mysql.real_connect(config[:host], db_user, db_pass, config[:database], config[:port], config[:socket])
95
96
 
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsMySql
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 5
5
- PATCH = 1
4
+ MINOR = 6
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.6.0
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: 2018-06-22 00:00:00.000000000 Z
11
+ date: 2018-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile
@@ -186,21 +186,21 @@ description: |-
186
186
  sending metrics to a MySQL database.
187
187
  email: "<sensu-users@googlegroups.com>"
188
188
  executables:
189
- - check-mysql-alive.rb
189
+ - metrics-mysql.rb
190
+ - metrics-mysql-query-result-count.rb
191
+ - check-mysql-replication-status.rb
192
+ - check-mysql-innodb-lock.rb
193
+ - metrics-mysql-raw.rb
190
194
  - check-mysql-connections.rb
195
+ - check-mysql-select-count.rb
191
196
  - check-mysql-disk.rb
192
- - check-mysql-innodb-lock.rb
193
197
  - check-mysql-msr-replication-status.rb
194
- - check-mysql-query-result-count.rb
195
- - check-mysql-replication-status.rb
198
+ - metrics-mysql-processes.rb
196
199
  - check-mysql-status.rb
200
+ - check-mysql-query-result-count.rb
197
201
  - check-mysql-threads.rb
202
+ - check-mysql-alive.rb
198
203
  - metrics-mysql-graphite.rb
199
- - metrics-mysql-processes.rb
200
- - metrics-mysql-query-result-count.rb
201
- - metrics-mysql-raw.rb
202
- - metrics-mysql.rb
203
- - check-mysql-select-count.rb
204
204
  extensions: []
205
205
  extra_rdoc_files: []
206
206
  files:
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  version: '0'
252
252
  requirements: []
253
253
  rubyforge_project:
254
- rubygems_version: 2.7.7
254
+ rubygems_version: 2.7.8
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Sensu plugins for MySql