diff --git a/check_postgres.pl b/check_postgres.pl index d88cad7..1813f55 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2126,7 +2126,7 @@ sub msg_en { if ($opt{port}[0]){ $pg_port = $opt{port}[0]; } - my $psql_output = join(",", map /^([\w|-]+?)\|/, qx{$PSQL -A -l -t -p $pg_port }); + my $psql_output = join(",", map /^([\w|-]+?)\|/, qx{$PSQL -A -l -t -X -p $pg_port }); my $pg_db; # optionally exclude or include each db my @psql_output_array = split(/,/, $psql_output);