From: Greg Sabino Mullane Date: Mon, 3 Jan 2011 16:40:07 +0000 (-0500) Subject: Fix warning when using symlinks X-Git-Tag: 2.15.4~16 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f14341bef651f7594009b4f492ecf3cc9a32a018;p=check_postgres.git Fix warning when using symlinks (Greg Sabino Mullane, reported by Peter Eisentraut in bug #63) --- diff --git a/check_postgres.pl b/check_postgres.pl index 8b14e3d09..9607a07b2 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -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 '' ? '' : 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 - 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 + + Fix warning when using symlinks + (Greg Sabino Mullane, reported by Peter Eisentraut in bug #63) + +=item B December 30, 2010 + + Show OK for no matching txn_idle entries. + =item B December 28, 2010 Better formatting of sizes in the bloat action output.