Code

markup for translation, move send_buffer assignment to process_args so process_tcp_re...
[nagiosplug.git] / plugins / check_pgsql.c
index b532d6816af94295bff99dbc72fa7f8d03a702d5..2dce0b35d2ef533f254fec2f1f93ccc48b618a26 100644 (file)
@@ -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);
@@ -133,9 +136,11 @@ print_help (void)
 
        print_usage ();
 
-       printf (_(HELP_VRSN));
+       printf (_(UT_HELP_VRSN));
 
-       printf (_(HOST_PORT_46), 'P', "5432");
+       printf (_(UT_HOST_PORT), 'P', myport);
+
+       printf (_(UT_IPv46));
 
        printf (S_("\
   -d, --database=STRING\n\
@@ -143,11 +148,13 @@ 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 (_(UT_WARN_CRIT));
 
-       printf (_(WARN_CRIT_TO), DEFAULT_SOCKET_TIMEOUT);
+       printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT);
 
-       printf (_(VRBS));
+       printf (_(UT_VERBOSE));
 
        printf (S_("\nAll parameters are optional.\n\
 \n\