From: Greg Sabino Mullane Date: Mon, 22 Sep 2008 15:18:46 +0000 (-0400) Subject: Tweak to fix args. X-Git-Tag: 2.9.0~264 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a065f2c0ccdc30b5d92afeadcb950721e0191d2f;p=check_postgres.git Tweak to fix args. --- diff --git a/check_postgres.pl b/check_postgres.pl index 99ac2b2cd..9ce9b49a9 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -28,7 +28,7 @@ $Data::Dumper::Varname = 'POSTGRES'; $Data::Dumper::Indent = 2; $Data::Dumper::Useqq = 1; -our $VERSION = '2.1.4'; +our $VERSION = '2.1.3'; use vars qw/ %opt $PSQL $res $COM $SQL $db /; @@ -2692,7 +2692,7 @@ sub check_txn_time { }); $SQL = q{SELECT datname, max(COALESCE(ROUND(EXTRACT(epoch FROM now()-xact_start)),0)) }. - qq{FROM pg_stat_activity WHERE xact_start IS NOT NULL$USERWHERECLAUSE GROUP BY 1}; + qq{FROM pg_stat_activity WHERE xact_start IS NOT NULL $USERWHERECLAUSE GROUP BY 1}; my $info = run_command($SQL, { regex => qr[\s*.+?\s+\|\s+\d+], emptyok => 1 } ); @@ -3262,7 +3262,7 @@ sub check_replicate_row { =head1 NAME B - a Postgres monitoring script for Nagios, MRTG, and others -This documents describes check_postgres.pl version 2.1.4 +This documents describes check_postgres.pl version 2.1.3 =head1 SYNOPSIS @@ -4331,7 +4331,6 @@ Items not specifically attributed are by Greg Sabino Mullane. =item B (September 22, 2008) Allow alternate arguments "dbhost" for "host" and "dbport" for "port". - Output a zero as default value for second line of MRTG output. =item B (July 28, 2008) @@ -4380,7 +4379,7 @@ Items not specifically attributed are by Greg Sabino Mullane. =item B (June 18, 2008) - Fix check_backends action: there may be no rows in pg_stat_activity, so run a second + Fix check_backends action: there may be no rows in pg_stat_activity, so run a second query if needed to find the max_connections setting. Thanks to Jeff Frost for the bug report. diff --git a/check_postgres.pl.asc b/check_postgres.pl.asc index eb3e56332..8bbc541fe 100644 --- a/check_postgres.pl.asc +++ b/check_postgres.pl.asc @@ -1,6 +1,6 @@ -----BEGIN PGP SIGNATURE----- -iEYEABEDAAYFAkjXqe4ACgkQvJuQZxSWSsjG8gCg8sx3s5gDdrw3zNSqmrWIEc3V -puAAoPHaZMjg7Q0H3G00mBLK7CPNi0Gm -=ij6H +iEYEABEDAAYFAkjXt0UACgkQvJuQZxSWSsgH8wCgsyZaQ6n4XnIfIX3HtpjUz+U6 +UrUAn31OXoEDPW84JNhhiMlycNFxAiv7 +=4Zkz -----END PGP SIGNATURE-----