From 74f7b5f58f3d0e49d3af9e658ba0b94408dc32f7 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 9 Jul 2009 16:01:33 -0400 Subject: Add dots and dashes to regex for dbname in backends check. Thanks to Davide Abrigo. --- check_postgres.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'check_postgres.pl') 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) -- cgit v1.2.3