File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
lib/sensu-plugins-postgres Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ 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
+ - check-postgresq-replication.rb: Adds missing option for custom port.
10
+
8
11
## [ 1.1.1] - 2017-04-24
9
12
### Fixed
10
13
- metrics-postgres-query.rb: Restored default value to only return first value in query. (@Micasou )
Original file line number Diff line number Diff line change 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 @@ def run
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
Original file line number Diff line number Diff line change @@ -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
You can’t perform that action at this time.
0 commit comments