sensu-plugins-postgres 1.1.1 → 1.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 +6 -1
- data/bin/check-postgres-replication.rb +8 -1
- data/lib/sensu-plugins-postgres/version.rb +1 -1
- 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: 9d26dcdd44fe98c05713721dc06ad27d57f8355c
|
4
|
+
data.tar.gz: 16854ca670b8a788df78361545dc54f7dfc740bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b417867bf2dc052bf32b3fc3b826a2c722cd08ff21f01d2065bc1cbd2a150ff0291b1b53aa7e1d40c5e40b2114b15f0fb262ce8989d88667b776b35de285d4ea
|
7
|
+
data.tar.gz: 22cc054c1cc75465c71d22664c07dc4903b040eb158092d6c15a87fb6b7d8e122c19eae55f3120c1cd6453ce959c559c959c9b23e096b01c2776b5105f6f9a95
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.1.2] - 2017-06-02
|
9
|
+
### Fixed
|
10
|
+
- check-postgresq-replication.rb: Adds missing option for custom port.
|
11
|
+
|
8
12
|
## [1.1.1] - 2017-04-24
|
9
13
|
### Fixed
|
10
14
|
- metrics-postgres-query.rb: Restored default value to only return first value in query. (@Micasou)
|
@@ -91,7 +95,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
91
95
|
### Added
|
92
96
|
- initial release
|
93
97
|
|
94
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.
|
98
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.2...HEAD
|
99
|
+
[1.1.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.1...1.1.2
|
95
100
|
[1.1.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.0...1.1.1
|
96
101
|
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.0.1...1.1.0
|
97
102
|
[1.0.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.0.0...1.0.1
|
@@ -17,7 +17,7 @@
|
|
17
17
|
# gem: pg
|
18
18
|
#
|
19
19
|
# USAGE:
|
20
|
-
# ./check-postgres-replication.rb -m master_host -s slave_host -d db -u db_user -p db_pass -w warn_threshold -c crit_threshold
|
20
|
+
# ./check-postgres-replication.rb -m master_host -s slave_host -P port -d db -u db_user -p db_pass -w warn_threshold -c crit_threshold
|
21
21
|
#
|
22
22
|
# NOTES:
|
23
23
|
#
|
@@ -41,6 +41,12 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
|
|
41
41
|
description: 'PostgreSQL slave HOST',
|
42
42
|
default: 'localhost')
|
43
43
|
|
44
|
+
option(:port,
|
45
|
+
short: '-P',
|
46
|
+
long: '--port=PORT',
|
47
|
+
description: 'PostgreSQL port',
|
48
|
+
default: 5432)
|
49
|
+
|
44
50
|
option(:database,
|
45
51
|
short: '-d',
|
46
52
|
long: '--database=NAME',
|
@@ -111,6 +117,7 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
|
|
111
117
|
dbname: config[:database],
|
112
118
|
user: config[:user],
|
113
119
|
password: config[:password],
|
120
|
+
port: config[:port],
|
114
121
|
sslmode: ssl_mode,
|
115
122
|
connect_timeout: config[:timeout])
|
116
123
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.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-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|