Code

Fix includes for gettext
[nagiosplug.git] / plugins / check_by_ssh.c
index 7080c695b289fd9bca2c20a6f47c643d8f7cacab..f31c9c61b6984536e7a872030cdd1f1593b6b7a4 100644 (file)
@@ -68,7 +68,7 @@ main (int argc, char **argv)
        textdomain (PACKAGE);
 
        /* process arguments */
-       if (process_arguments (argc, argv) != TRUE)
+       if (process_arguments (argc, argv) == ERROR)
                usage4 (_("Could not parse arguments"));
 
        /* Set signal handling and alarm timeout */
@@ -338,8 +338,8 @@ print_help (void)
 {
        print_revision (progname, revision);
 
-       printf (_("Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n"));
-       printf (_(COPYRIGHT), copyright, email);
+       printf ("Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n");
+       printf (COPYRIGHT, copyright, email);
 
        printf (_("This plugin uses SSH to execute commands on a remote host\n\n"));
 
@@ -393,13 +393,13 @@ To use passive mode, provide multiple '-C' options, and provide\n\
 all of -O, -s, and -n options (servicelist order must match '-C'\n\
 options)\n"));
 
-       printf (_("\n\
+       printf ("\n\
 $ check_by_ssh -H localhost -n lh -s c1:c2:c3 \\\n\
     -C uptime -C uptime -C uptime -O /tmp/foo\n\
 $ cat /tmp/foo\n\
 [1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c1;0; up 2 days...\n\
 [1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days...\n\
-[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days...\n"));
+[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days...\n");
 
        printf (_(UT_SUPPORT));
 }
@@ -410,9 +410,6 @@ void
 print_usage (void)
 {
        printf ("\n\
-Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> \n\
-  -C <command> [-n name] [-s servicelist] [-O outputfile] [-p port]\n",
-               progname);
-                                       
-       printf (_(UT_HLP_VRS), progname, progname);
+Usage: %s [-f46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n\
+                  [-n name] [-s servicelist] [-O outputfile] [-p port]\n", progname);
 }