Skip to content

Commit 398db32

Browse files
Some fixes for 0.2.1
1 parent 283a393 commit 398db32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/check-postgres-alive.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run
4747
res = con.exec('select version();')
4848
info = res.first
4949

50-
ok "Server version: #{info}"
50+
ok "Server version: #{info['version']}"
5151
rescue PG::Error => e
5252
critical "Error message: #{e.error.split("\n").first}"
5353
ensure

bin/check-postgres-connection.rb bin/check-postgres-connections.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CheckPostgresConnections < Sensu::Plugin::Check::CLI
1616
long: '--password PASS'
1717

1818
option :hostname,
19-
description: 'Hostname to login to',
19+
description: 'Postgres Hostname',
2020
short: '-h HOST',
2121
long: '--hostname HOST'
2222

lib/sensu/plugins/postgres/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Sensu
44
module Plugins
55
module Postgres
6-
VERSION = '0.2.0'
6+
VERSION = '0.2.1'
77
end
88
end
99
end

0 commit comments

Comments
 (0)