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 +4 -4
- data/CHANGELOG.md +13 -1
- data/bin/check-mysql-status.rb +69 -12
- data/lib/sensu-plugins-mysql/version.rb +3 -3
- 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: a9ed9307213b4bc5dd251f86367045379d88101f
|
4
|
+
data.tar.gz: 084a97a89f06e7caa95d2ca87718150527c6c37d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
data/bin/check-mysql-status.rb
CHANGED
@@ -34,18 +34,75 @@ require 'open3'
|
|
34
34
|
|
35
35
|
# Check MySQL Status
|
36
36
|
class CheckMySQLStatus < Sensu::Plugin::Check::CLI
|
37
|
-
option :user,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
option :
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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]
|
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:
|
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-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inifile
|