Fix warning when using symlinks
authorGreg Sabino Mullane <[email protected]>
Mon, 3 Jan 2011 16:40:07 +0000 (11:40 -0500)
committerGreg Sabino Mullane <[email protected]>
Mon, 3 Jan 2011 16:40:07 +0000 (11:40 -0500)
(Greg Sabino Mullane, reported by Peter Eisentraut in bug #63)

check_postgres.pl

index 8b14e3d091a80b2d351e311873d36460caf5c8a6..9607a07b2e31fcd43f348b64fd89d028c0580643 100755 (executable)
@@ -30,7 +30,7 @@ $Data::Dumper::Varname = 'POSTGRES';
 $Data::Dumper::Indent = 2;
 $Data::Dumper::Useqq = 1;
 
-our $VERSION = '2.15.2';
+our $VERSION = '2.15.3';
 
 use vars qw/ %opt $PSQL $res $COM $SQL $db /;
 
@@ -1065,7 +1065,7 @@ sub add_response {
                 $db->{host} eq '<none>' ? '' : qq{(host:$db->{host}) },
                     defined $db->{port} ? ($db->{port} eq $opt{defaultport} ? '' : qq{(port=$db->{port}) }) : '';
     $header =~ s/\s+$//;
-    my $perf = ($opt{showtime} and $db->{totaltime} and $opt{action} ne 'bloat') ? "time=$db->{totaltime}" : '';
+    my $perf = ($opt{showtime} and $db->{totaltime} and $action ne 'bloat') ? "time=$db->{totaltime}" : '';
     if ($db->{perf}) {
         $perf .= " $db->{perf}";
     }
@@ -7180,7 +7180,7 @@ sub check_archive_ready {
 
 B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
 
-This documents describes check_postgres.pl version 2.15.2
+This documents describes check_postgres.pl version 2.15.3
 
 =head1 SYNOPSIS
 
@@ -8760,6 +8760,15 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =over 4
 
+=item B<Version 2.15.4>
+
+  Fix warning when using symlinks
+    (Greg Sabino Mullane, reported by Peter Eisentraut in bug #63)
+
+=item B<Version 2.15.3> December 30, 2010
+
+  Show OK for no matching txn_idle entries.
+
 =item B<Version 2.15.2> December 28, 2010
 
   Better formatting of sizes in the bloat action output.