sensu-plugins-mysql 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +32 -3
- data/bin/check-mysql-disk.rb +1 -1
- data/lib/sensu-plugins-mysql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a3f47930f8ac4e6169ecd568784a515973f794e
|
4
|
+
data.tar.gz: b5a697219c0ed255ccc8f91534b464bf7a2b606c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a19f0dcac1046df6e83661fd8bdc209f61393afa30552d0c919252500d289f7167ec894a1cbab37bed91d81bba1fdd8f1aff7a1d87a5f175ec13c9e21883457e
|
7
|
+
data.tar.gz: e361955c2b457d4fdd0eefd7cc0db2245a16ec6b9e4ecf388260228c2f7f84fe73e7209b31445da3a64202e12518c52eaad1f88b1f92db8f2c055d3831d2df39
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.1.2] - 2017-10-04
|
9
|
+
### Changed
|
10
|
+
- In `README` clarify why they should not use privileged users for monitoring with sensu. (@majormoses)
|
11
|
+
- In `README` add more usage examples. (@rwillmer)
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
- check-mysql-disk.rb: fixed short option `-s` to `-S` for `--socket` as it conflicted with `--size` (@2autunni)
|
15
|
+
|
8
16
|
## [2.1.1] - 2017-06-25
|
9
17
|
### Added
|
10
18
|
- Added minimum viable permissions in `README` for all the checks, metrics, and handlers. (@majormoses)
|
@@ -83,6 +91,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
83
91
|
- initial release
|
84
92
|
|
85
93
|
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.1.1...HEAD
|
94
|
+
[2.1.2]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.1.1...2.1.2
|
86
95
|
[2.1.1]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.1.0...2.1.1
|
87
96
|
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/2.0.0...2.1.0
|
88
97
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-mysql/compare/1.2.1...2.0.0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Sensu-Plugins-mysql
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-mysql.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-mysql)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-mysql.svg)](http://badge.fury.io/rb/sensu-plugins-mysql)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mysql/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mysql)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mysql/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mysql)
|
@@ -25,7 +25,6 @@
|
|
25
25
|
* bin/mysql-metrics.sql
|
26
26
|
|
27
27
|
## Usage
|
28
|
-
|
29
28
|
**metrics-mysql**
|
30
29
|
```
|
31
30
|
{
|
@@ -47,6 +46,36 @@
|
|
47
46
|
/opt/sensu/embedded/bin$ /opt/sensu/embedded/bin/ruby check-mysql-connections.rb --host=localhost --port=3306 --user=collectd --pass=tflypass --socket=/data/mysql.sock
|
48
47
|
```
|
49
48
|
|
49
|
+
**check-mysql-connections** example with ini file to hide credentials
|
50
|
+
```bash
|
51
|
+
$ /opt/sensu/embedded/bin/check-mysql-connections.rb --host=<DBHOST> --ini=/etc/sensu/my.ini
|
52
|
+
```
|
53
|
+
|
54
|
+
**check-mysql-alive** example
|
55
|
+
```bash
|
56
|
+
$ /opt/sensu/embedded/bin/check-mysql-alive.rb --host=<DBHOST> --ini=/etc/sensu/my.ini
|
57
|
+
```
|
58
|
+
|
59
|
+
**check-mysql-disk** example (note: you must supply max disk size)
|
60
|
+
```bash
|
61
|
+
$ /opt/sensu/embedded/bin/check-mysql-disk.rb --host=<DBHOST> --ini=/etc/sensu/my.ini --size <MAX_DB_SIZE>
|
62
|
+
```
|
63
|
+
|
64
|
+
**check-mysql-innodb-lock** example
|
65
|
+
```bash
|
66
|
+
$ /opt/sensu/embedded/bin/check-mysql-innodb-lock.rb --host=<DBHOST> --ini=/etc/sensu/my.ini
|
67
|
+
```
|
68
|
+
|
69
|
+
**check-mysql-threads** example
|
70
|
+
```bash
|
71
|
+
$ /opt/sensu/embedded/bin/check-mysql-threads.rb --host=<DBHOST> --ini=/etc/sensu/my.ini --warnlow 0
|
72
|
+
```
|
73
|
+
|
74
|
+
**check-mysql-replication-status** example
|
75
|
+
```bash
|
76
|
+
$ /opt/sensu/embedded/bin/check-mysql-replication-status.rb --host=<SLAVE> --ini=/etc/sensu/my.ini
|
77
|
+
```
|
78
|
+
|
50
79
|
**check-mysql-query-result-count** example
|
51
80
|
```bash
|
52
81
|
/opt/sensu/embedded/bin$ /opt/sensu/embedded/bin/ruby check-mysql-query-result-count.rb --host=localhost --port=3306 --user=collectd --pass=tflypass --socket=/data/mysql.sock --warning 1 --critical 10 --query 'SELECT DISTINCT(t.id) FROM table t where t.failed = true'
|
@@ -59,7 +88,7 @@
|
|
59
88
|
|
60
89
|
### Security
|
61
90
|
|
62
|
-
|
91
|
+
In keeping with the principle of least privilege you should create a new user with the minimum required permissions. See the table below for minimum permissions for each check.
|
63
92
|
|
64
93
|
| Check | Permissions |
|
65
94
|
|:---------------------------------------|:----------------------------------------------------------|
|
data/bin/check-mysql-disk.rb
CHANGED
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.1.
|
4
|
+
version: 2.1.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: 2017-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inifile
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.6.13
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Sensu plugins for MySql
|