projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
845bc82
)
Show dbservice if used at start of same_schema header.
author
Mike Blackwell
<mike.blackwell@rrd.com>
Thu, 6 Oct 2011 20:15:40 +0000
(16:15 -0400)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Thu, 6 Oct 2011 20:15:40 +0000
(16:15 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index fbe9eba97b3abe017347a79d95f30c82b10dec7a..573fff08c0010e6fc9da790c24a9bae941ff2b6b 100755
(executable)
--- 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} } : '',