[check_postgres] [commit] Allow 'db' variants of host and port arguments.

check_postgres at bucardo.org check_postgres at bucardo.org
Mon Sep 22 14:14:56 UTC 2008


Committed by Greg Sabino Mullane <greg at endpoint.com>

Allow 'db' variants of host and port arguments.

---
 check_postgres.pl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/check_postgres.pl b/check_postgres.pl
index 83b143c..c85b9d4 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -102,14 +102,14 @@ die $USAGE unless
 			   'includeuser=s@',
 			   'excludeuser=s@',
 
-			   'host|H=s@',
-			   'port=s@',
+			   'dbhost|host|H=s@',
+			   'dbport|port=s@',
 			   'dbname|db=s@',
 			   'dbuser|u=s@',
 			   'dbpass=s@',
 
-			   'host2|H2=s@',
-			   'port2=s@',
+			   'dbhost2|host2|H2=s@',
+			   'dbport2|port2=s@',
 			   'dbname2|db2=s@',
 			   'dbuser2|u2=s@',
 			   'dbpass2=s@',
-- 
1.5.5.4



More information about the Check_postgres mailing list