Apply small fix from Davide Abrigo.
authorGreg Sabino Mullane <[email protected]>
Mon, 13 Jul 2009 15:08:49 +0000 (11:08 -0400)
committerGreg Sabino Mullane <[email protected]>
Mon, 13 Jul 2009 15:08:49 +0000 (11:08 -0400)
Bump version to 2.9.3

META.yml
Makefile.PL
check_postgres.pl
check_postgres.pl.html

index ac1a834ba90a38bb964a4a91910160021ea5b70a..f3a7894d41b2cd9d97e1adabb077cd315fd70185 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name                        : check_postgres.pl
-version                     : 2.9.2
+version                     : 2.9.3
 abstract                    : Postgres monitoring script
 author:              
   - Greg Sabino Mullane <[email protected]>
@@ -30,7 +30,7 @@ recommends:
 provides:
   check_postgres:
     file                    : check_postgres.pl
-    version                 : 2.9.2
+    version                 : 2.9.3
 
 keywords:
   - Postgres
index acf0a2f2424313858e0c0139c44d825f1c7d3b16..78ea713c078cae5c4a8fb4b54d7de980c4a02472 100644 (file)
@@ -6,7 +6,7 @@ use strict;
 use warnings;
 use 5.006001;
 
-my $VERSION = '2.9.2';
+my $VERSION = '2.9.3';
 
 if ($VERSION =~ /_/) {
        print "WARNING! This is a test version ($VERSION) and should not be used in production!\n";
index 3a3cd6c6623582e6de4db6f4d104875842ff6073..ab760b3dcf76f675f886e24d114d284bb8c46199 100755 (executable)
@@ -29,7 +29,7 @@ $Data::Dumper::Varname = 'POSTGRES';
 $Data::Dumper::Indent = 2;
 $Data::Dumper::Useqq = 1;
 
-our $VERSION = '2.9.2';
+our $VERSION = '2.9.3';
 
 use vars qw/ %opt $PSQL $res $COM $SQL $db /;
 
@@ -2351,7 +2351,7 @@ sub check_backends {
                        $limit ||= $2;
                        my ($current,$dbname) = ($1,$3);
                        ## Always want perf to show all
-                       $db->{perf} .= " $dbname=$current";
+                       $db->{perf} .= " '$dbname'=$current";
                        next SLURP if skip_item($dbname);
                        $total += $current;
                }
@@ -6040,7 +6040,7 @@ sub show_dbstats {
 
 B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
 
-This documents describes check_postgres.pl version 2.9.2
+This documents describes check_postgres.pl version 2.9.3
 
 =head1 SYNOPSIS
 
@@ -7450,6 +7450,10 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =over 4
 
+=item B<Version 2.9.3>
+
+  Quote dbname in perf output for the backends check. (Davide Abrigo)
+
 =item B<Version 2.9.2> (July 12, 2009)
 
   Allow dots and dashes in database name for the backends check (Davide Abrigo)
index 59d1ccdcbc386b1476426359b04cc5424da298e7..d3fec93c31489e0bace146edf0645d498b65225c 100644 (file)
 <hr />
 <h1><a name="name">NAME</a></h1>
 <p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others</p>
-<p>This documents describes check_postgres.pl version 2.9.2</p>
+<p>This documents describes check_postgres.pl version 2.9.3</p>
 <p>
 </p>
 <hr />
@@ -1386,6 +1386,12 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr
 <h1><a name="history">HISTORY</a></h1>
 <p>Items not specifically attributed are by Greg Sabino Mullane.</p>
 <dl>
+<dt><strong><a name="version_2_9_3" class="item"><strong>Version 2.9.3</strong></a></strong></dt>
+
+<dd>
+<pre>
+  Quote dbname in perf output for the backends check. (Davide Abrigo)</pre>
+</dd>
 <dt><strong><a name="2" class="item"><strong>Version 2.9.2</strong> (July 12, 2009)</a></strong></dt>
 
 <dd>