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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b486ab1f37f22a717a6f7cbe8a571a82538ba90
4
- data.tar.gz: f39d9d67e8575e3137b037603404e7a72cb27fda
3
+ metadata.gz: 7a3f47930f8ac4e6169ecd568784a515973f794e
4
+ data.tar.gz: b5a697219c0ed255ccc8f91534b464bf7a2b606c
5
5
  SHA512:
6
- metadata.gz: fa7b759b755510fd75a664d5fcc79a4d5f801416afe98e3c7b30364b161061d0dfbc729083e36b16c0f7c2ced36d7da468c40c396770147d9abf81346352f3e3
7
- data.tar.gz: e5dae69ae37eea727d9971245874e3445d843d117ec02c2f86624f2a088b82825cf7250e50b36af334fcc812ba6a5c81dddba6fc381678cdb7e1accffe7aa8a0
6
+ metadata.gz: a19f0dcac1046df6e83661fd8bdc209f61393afa30552d0c919252500d289f7167ec894a1cbab37bed91d81bba1fdd8f1aff7a1d87a5f175ec13c9e21883457e
7
+ data.tar.gz: e361955c2b457d4fdd0eefd7cc0db2245a16ec6b9e4ecf388260228c2f7f84fe73e7209b31445da3a64202e12518c52eaad1f88b1f92db8f2c055d3831d2df39
@@ -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
- [ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-mysql.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-mysql)
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
- Rather than being lazy and giving it say the root user or another user that has root privileges you should create a new user with the minimum required permissions. See the table below for minimum permissions for each check.
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
  |:---------------------------------------|:----------------------------------------------------------|
@@ -65,7 +65,7 @@ class CheckMysqlDisk < Sensu::Plugin::Check::CLI
65
65
 
66
66
  option :socket,
67
67
  description: 'Socket to use',
68
- short: '-s SOCKET',
68
+ short: '-S SOCKET',
69
69
  long: '--socket SOCKET',
70
70
  default: nil
71
71
 
@@ -2,7 +2,7 @@ module SensuPluginsMySql
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
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.1.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-06-26 00:00:00.000000000 Z
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.4.5
250
+ rubygems_version: 2.6.13
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: Sensu plugins for MySql