From 32d9f091e1f5d88c3ce6cef24b8d7c94e0a9d47c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 22 Sep 2008 10:55:02 -0400 Subject: [PATCH] GetOpts very fussy about order of args. --- check_postgres.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check_postgres.pl b/check_postgres.pl index 588c552c1..99ac2b2cd 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.3'; +our $VERSION = '2.1.4'; use vars qw/ %opt $PSQL $res $COM $SQL $db /; @@ -102,8 +102,8 @@ die $USAGE unless 'includeuser=s@', 'excludeuser=s@', - 'dbhost|host|H=s@', - 'dbport|port=s@', + 'host|dbhost|H=s@', + 'port|dbport=s@', 'dbname|db=s@', 'dbuser|u=s@', 'dbpass=s@', @@ -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.3 +This documents describes check_postgres.pl version 2.1.4 =head1 SYNOPSIS -- 2.30.2