diff options
author | Mike Blackwell | 2011-10-06 20:15:40 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-10-06 20:15:40 +0000 |
commit | 20c2c42eff6f3c500a77ecce68d4708fde74c947 (patch) | |
tree | da372ad27a9c019ce00d45b0c27f9bb04dce29ee /check_postgres.pl | |
parent | 845bc823f03b58a1455198de96e6d4d653170871 (diff) |
Show dbservice if used at start of same_schema header.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index fbe9eba97..573fff08c 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1372,8 +1372,9 @@ sub add_response { 'CP version', $row->{cversion}; } - $same_schema_header .= sprintf "\nDB %s: %s%s%s%s", + $same_schema_header .= sprintf "\nDB %s: %s%s%s%s%s", $number, + defined $row->{dbservice} ? qq{dbservice=$row->{dbservice} } : '', defined $row->{port} ? qq{port=$row->{port} } : '', defined $row->{host} ? qq{host=$row->{host} } : '', defined $row->{dbname} ? qq{dbname=$row->{dbname} } : '', |