From 20c2c42eff6f3c500a77ecce68d4708fde74c947 Mon Sep 17 00:00:00 2001 From: Mike Blackwell Date: Thu, 6 Oct 2011 16:15:40 -0400 Subject: [PATCH] Show dbservice if used at start of same_schema header. --- check_postgres.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} } : '', -- 2.39.5