From ccead7695f4c31401283b95547e9f9703a4c43f2 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Wed, 30 Jul 2003 04:07:53 +0000 Subject: markup for translation git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@620 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_pgsql.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'plugins/check_pgsql.c') diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index b532d681..2d2f6d31 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c @@ -29,8 +29,7 @@ enum { DEFAULT_PORT = 5432, DEFAULT_WARN = 2, - DEFAULT_CRIT = 8, - DEFAULT_TIMEOUT = 30 + DEFAULT_CRIT = 8 }; #include "config.h" @@ -125,6 +124,10 @@ Please note that all tags must be lowercase to use the DocBook XML DTD. void print_help (void) { + char *myport; + + asprintf (&myport, "%d", DEFAULT_PORT); + print_revision (progname, revision); printf (_(COPYRIGHT), copyright, email); @@ -135,7 +138,9 @@ print_help (void) printf (_(HELP_VRSN)); - printf (_(HOST_PORT_46), 'P', "5432"); + printf (_(HOST_PORT), 'P', myport); + + printf (_(IPv46)); printf (S_("\ -d, --database=STRING\n\ @@ -143,7 +148,7 @@ print_help (void) -l, --logname = STRING\n\ Login name of user\n\ -p, --password = STRING\n\ - Password (BIG SECURITY ISSUE)\n\n"), DEFAULT_DB); + Password (BIG SECURITY ISSUE)\n"), DEFAULT_DB); printf (_(WARN_CRIT_TO), DEFAULT_SOCKET_TIMEOUT); -- cgit v1.2.3