From: Greg Sabino Mullane Date: Mon, 3 Aug 2009 15:06:36 +0000 (-0400) Subject: Apply patch from Cédric Villemain X-Git-Tag: 2.10.0~9 X-Git-Url: http://git.postgresql.org/gitweb/static/main.js?a=commitdiff_plain;h=95e34f40ab102e6953c499e433e560015c0b2fb8;p=check_postgres.git Apply patch from Cédric Villemain --- diff --git a/check_postgres.pl b/check_postgres.pl index c01961a94..996250937 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -29,7 +29,7 @@ $Data::Dumper::Varname = 'POSTGRES'; $Data::Dumper::Indent = 2; $Data::Dumper::Useqq = 1; -our $VERSION = '2.9.5'; +our $VERSION = '2.10.0'; use vars qw/ %opt $PSQL $res $COM $SQL $db /; @@ -2240,7 +2240,7 @@ sub check_autovac_freeze { next; } - my $msg = "$dbname=$percent\% ($age)"; + my $msg = "'$dbname'=$percent\%;$w;$c"; $db->{perf} .= " $msg"; if (length $critical and $percent >= $c) { push @crit => $msg; @@ -6147,7 +6147,7 @@ sub show_dbstats { B - a Postgres monitoring script for Nagios, MRTG, Cacti, and others -This documents describes check_postgres.pl version 2.9.5 +This documents describes check_postgres.pl version 2.10.0 =head1 SYNOPSIS @@ -7557,11 +7557,12 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 -=item B +=item B (July 25, 2009) For same_schema, compare view definitions, and compare languages. Make script into a global executable via the Makefile.PL file. Better output when comparing two databases. + Proper Nagios output syntax for autovac_freeze (Cédric Villemain) =item B (July 24, 2009)