From 95e34f40ab102e6953c499e433e560015c0b2fb8 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 3 Aug 2009 11:06:36 -0400 Subject: [PATCH] =?utf8?q?Apply=20patch=20from=20C=C3=A9dric=20Villemain?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- check_postgres.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) -- 2.39.5