aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_pgsql.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-07-30 04:07:53 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-07-30 04:07:53 +0000
commitccead7695f4c31401283b95547e9f9703a4c43f2 (patch)
tree56bbdd9ee3f9ee81ad16ee3e8c012851ed159852 /plugins/check_pgsql.c
parent1cb0499adcc043515c2b62bbf62dc4d6b10f8cc9 (diff)
downloadmonitoring-plugins-ccead7695f4c31401283b95547e9f9703a4c43f2.tar.gz
markup for translation
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@620 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r--plugins/check_pgsql.c13
1 files changed, 9 insertions, 4 deletions
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);