diff options
author | Greg Sabino Mullane | 2011-01-03 16:40:07 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-01-03 16:40:07 +0000 |
commit | f14341bef651f7594009b4f492ecf3cc9a32a018 (patch) | |
tree | 458460dad93f7589638173732e9a99871cc5f307 | |
parent | f6616867215e4e0674dddb3e8b49231ddc2e2650 (diff) |
Fix warning when using symlinks
(Greg Sabino Mullane, reported by Peter Eisentraut in bug #63)
-rwxr-xr-x | check_postgres.pl | 15 |
1 files changed, 12 insertions, 3 deletions
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 '<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. |