diff options
author | Greg Sabino Mullane | 2009-07-09 20:01:33 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-07-09 20:01:33 +0000 |
commit | 74f7b5f58f3d0e49d3af9e658ba0b94408dc32f7 (patch) | |
tree | f044cef4bac63101403db648458a7d523a848371 /check_postgres.pl | |
parent | a751a0c34e97bf749400816967556c42b67332f2 (diff) |
Add dots and dashes to regex for dbname in backends check. Thanks to Davide Abrigo.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 6 |
1 files changed, 5 insertions, 1 deletions
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<Version 2.9.2> + + Allow dots and dashes in database name for the backends check (Davide Abrigo) + =item B<Version 2.9.1> (June 12, 2009) Fix for multiple databases with the check_bloat action (Mark Kirkwood) |