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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/check-mysql-select-count.rb +4 -3
- data/lib/sensu-plugins-mysql/version.rb +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba2c83d93364ab17b2ff50509b773fd06cf27874b154c812cfd205e24e01fe4a
|
|
4
|
+
data.tar.gz: 9354135db5e40d55d8e9ff44c095a6d7bd6287b5d8b5989937deaffa59c62b65
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15b9d19c2f41c2ff0c7397ff950c7addcacae961e0579a60db86f0238f3608885f0a55b2f3678b7dee94a6094ad5a809a4de286134c5efb90e0f33f3fea9c81c
|
|
7
|
+
data.tar.gz: 866bf72082604e8743b58c8eba700ee66be98fba9dc36098b68103b018763b7779c0a44ff30e24968e9d655e1d755fbf06f900959cd37df58a07220bf8d7208c
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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.
|
|
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-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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.
|
|
254
|
+
rubygems_version: 2.7.8
|
|
255
255
|
signing_key:
|
|
256
256
|
specification_version: 4
|
|
257
257
|
summary: Sensu plugins for MySql
|