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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f4d41d9e8567ba94e8cb7d38d378107be1c0248
4
- data.tar.gz: dd0d8501a6cd9949edfd85a228ad6b833f006c28
3
+ metadata.gz: 9d26dcdd44fe98c05713721dc06ad27d57f8355c
4
+ data.tar.gz: 16854ca670b8a788df78361545dc54f7dfc740bf
5
5
  SHA512:
6
- metadata.gz: 7b34af9e59c3b2c36c9f79b1e21fea903fae0e44a6d936bbb09005332bbd80ff5f6885661870029b3dd64ed4671a0962eac7e3931673a4d08963cd3da58445f0
7
- data.tar.gz: 3bc35fd2142c7988c23cb1b7b18196e69111c127dea1f78a5eebd1a29212d3c5a168714596efd866d7a2ebf550e37ab2a74f5b50956ce69b2691b65e88d4e18e
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.1...HEAD
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
 
@@ -2,7 +2,7 @@ module SensuPluginsPostgres
2
2
  module Version
3
3
  MAJOR = 1
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-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.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-04-24 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin