summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorMike Blackwell2011-10-06 20:15:40 +0000
committerGreg Sabino Mullane2011-10-06 20:15:40 +0000
commit20c2c42eff6f3c500a77ecce68d4708fde74c947 (patch)
treeda372ad27a9c019ce00d45b0c27f9bb04dce29ee /check_postgres.pl
parent845bc823f03b58a1455198de96e6d4d653170871 (diff)
Show dbservice if used at start of same_schema header.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl3
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} } : '',