Add dots and dashes to regex for dbname in backends check. Thanks to Davide Abrigo.
authorGreg Sabino Mullane <[email protected]>
Thu, 9 Jul 2009 20:01:33 +0000 (16:01 -0400)
committerGreg Sabino Mullane <[email protected]>
Thu, 9 Jul 2009 20:01:33 +0000 (16:01 -0400)
check_postgres.pl

index 9c8a3d2f7d6790d36cf389851e5d1f125137f6cd..77f057747b036810d3f907b02bdfde8db3fcf18e 100755 (executable)
@@ -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)