From: Greg Sabino Mullane Date: Thu, 9 Jul 2009 20:01:33 +0000 (-0400) Subject: Add dots and dashes to regex for dbname in backends check. Thanks to Davide Abrigo. X-Git-Tag: 2.9.2~25 X-Git-Url: http://git.postgresql.org/gitweb/static/main.js?a=commitdiff_plain;h=74f7b5f58f3d0e49d3af9e658ba0b94408dc32f7;p=check_postgres.git Add dots and dashes to regex for dbname in backends check. Thanks to Davide Abrigo. --- diff --git a/check_postgres.pl b/check_postgres.pl index 9c8a3d2f7..77f057747 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2260,7 +2260,7 @@ sub check_backends { for $db (@{$info->{db}}) { my ($limit,$total,$grandtotal) = (0,0,0); - SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+)\s+\|\s+(\w+)\s*/gsm) { + SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+)\s+\|\s+([\w\-\.]+)\s*/gsm) { $grandtotal++; $limit ||= $2; my ($current,$dbname) = ($1,$3); @@ -7359,6 +7359,10 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 +=item B + + Allow dots and dashes in database name for the backends check (Davide Abrigo) + =item B (June 12, 2009) Fix for multiple databases with the check_bloat action (Mark Kirkwood)