sensu-plugins-mysql 1.2.1 → 2.0.0

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: ea1952c009e96cb2c930f04af422f2895c78e937
4
- data.tar.gz: a68fbd6289920d08e5af527b1d207db3e3860ccd
3
+ metadata.gz: a9ed9307213b4bc5dd251f86367045379d88101f
4
+ data.tar.gz: 084a97a89f06e7caa95d2ca87718150527c6c37d
5
5
  SHA512:
6
- metadata.gz: 7c12ce6ea8b685d705e499f6c830de95f398279266d551621e96e8407e5ef9b86a3f3b1861811fb70b3b04a28cdbb97f35758a0d9735ef2d76ff51a0133d5f96
7
- data.tar.gz: b08bf2c45b1f7af02ac485370eb26e8839f0d5312cc94a992e495b069e2186b1769d9aed4f25ef4e4b1c1f83c631560c5f071d429e89a03bb8285fd83f74fb88
6
+ metadata.gz: 8d33d92cde4c78d7bbdeff35e48f0a32111147593f4167e03e5955fdca93a71210a6d0176bd557e3497d07aee72cb4de2ad2f77843e94b0e113d0b322dbf5686
7
+ data.tar.gz: b4ceea2313dc9794199d80474ba5f3cea6745f2b599b113b874ce9d5b62d22d1927837cb62530b3f9d2c94aa220c9db5a0ea8adf88751253bbe0a4217a975386
data/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+
8
+ ## [2.0.0] - 2017-06-05
9
+ ### Breaking Change
10
+ - check-mysql-status.rb: renamed short arg of `--check` due to conflicts (@majormoses)
11
+
12
+ ### Changed
13
+ - check-mysql-status.rb: made the options easier to read by splitting them across multiple lines (@majormoses)
14
+
15
+ ### Added
16
+ - Add testing on Ruby 2.4 (@eheydrick)
17
+
7
18
  ## [1.2.1] - 2017-05-03
8
19
  ### Fixed
9
20
  - Fix configuration for check-mysql-query-result-count.rb script (@athal7)
@@ -57,7 +68,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
57
68
  ### Added
58
69
  - initial release
59
70
 
60
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.2.1...HEAD
71
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.0.0...HEAD
72
+ [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.2.1...2.0.0
61
73
  [1.2.1]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.2.0...1.2.1
62
74
  [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.1.0...1.2.0
63
75
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.0.0...1.1.0
@@ -34,18 +34,75 @@ require 'open3'
34
34
 
35
35
  # Check MySQL Status
36
36
  class CheckMySQLStatus < Sensu::Plugin::Check::CLI
37
- option :user, description: 'MySQL User', short: '-u USER', long: '--user USER', default: 'mosim'
38
- option :password, description: 'MySQL Password', short: '-p PASS', long: '--password PASS', default: 'mysqlPassWord'
39
- option :ini, description: 'My.cnf ini file', short: '-i', long: '--ini VALUE'
40
- option :hostname, description: 'Hostname to login to', short: '-h HOST', long: '--hostname HOST', default: 'localhost'
41
- option :database, description: 'Database schema to connect to', short: '-d DATABASE', long: '--database DATABASE', default: 'test'
42
- option :port, description: 'Port to connect to', short: '-P PORT', long: '--port PORT', default: '3306'
43
- option :socket, description: 'Socket to use', short: '-s SOCKET', long: '--socket SOCKET', default: '/var/run/mysqld/mysqld.sock'
44
- option :binary, description: 'Absolute path to mysql binary', short: '-b BINARY', long: '--binary BINARY', default: 'mysql'
45
- option :check, description: 'type of check: status | replication', short: '-c CHECK', long: '--check CHECK', default: 'status'
46
- option :warn, short: '-w', long: '--warning=VALUE', description: 'Warning threshold for replication lag', default: 900
47
- option :crit, short: '-c', long: '--critical=VALUE', description: 'Critical threshold for replication lag', default: 1800
48
- option :debug, description: 'Print debug info', long: '--debug', default: false
37
+ option :user,
38
+ description: 'MySQL User, you really should use ini to hide credentials instead of using me',
39
+ short: '-u USER',
40
+ long: '--user USER',
41
+ default: 'mosim'
42
+
43
+ option :password,
44
+ description: 'MySQL Password, you really should use ini to hide credentials instead of using me',
45
+ short: '-p PASS',
46
+ long: '--password PASS',
47
+ default: 'mysqlPassWord'
48
+
49
+ option :ini,
50
+ description: 'My.cnf ini file',
51
+ short: '-i',
52
+ long: '--ini VALUE'
53
+
54
+ option :hostname,
55
+ description: 'Hostname to login to',
56
+ short: '-h HOST',
57
+ long: '--hostname HOST',
58
+ default: 'localhost'
59
+
60
+ option :database,
61
+ description: 'Database schema to connect to',
62
+ short: '-d DATABASE',
63
+ long: '--database DATABASE',
64
+ default: 'test'
65
+
66
+ option :port,
67
+ description: 'Port to connect to',
68
+ short: '-P PORT',
69
+ long: '--port PORT',
70
+ default: '3306'
71
+
72
+ option :socket,
73
+ description: 'Socket to use',
74
+ short: '-s SOCKET',
75
+ long: '--socket SOCKET',
76
+ default: '/var/run/mysqld/mysqld.sock'
77
+
78
+ option :binary,
79
+ description: 'Absolute path to mysql binary',
80
+ short: '-b BINARY',
81
+ long: '--binary BINARY',
82
+ default: 'mysql'
83
+
84
+ option :check,
85
+ description: 'type of check: (status|replication)',
86
+ short: '-C CHECK',
87
+ long: '--check CHECK',
88
+ default: 'status'
89
+
90
+ option :warn,
91
+ description: 'Warning threshold for replication lag',
92
+ short: '-w',
93
+ long: '--warning=VALUE',
94
+ default: 900
95
+
96
+ option :crit,
97
+ description: 'Critical threshold for replication lag',
98
+ short: '-c',
99
+ long: '--critical=VALUE',
100
+ default: 1800
101
+
102
+ option :debug,
103
+ description: 'Print debug info',
104
+ long: '--debug',
105
+ default: false
49
106
 
50
107
  def credentials
51
108
  if config[:ini]
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsMySql
2
2
  module Version
3
- MAJOR = 1
4
- MINOR = 2
5
- PATCH = 1
3
+ MAJOR = 2
4
+ MINOR = 0
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: 1.2.1
4
+ version: 2.0.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: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inifile