Code

Fix includes for gettext
[nagiosplug.git] / plugins / check_mrtg.c
index 7cf7d89732f06f9d47291366e446086447bf10cc..bd37aefff893d18c441b7cefdbd8d53b4093a5d0 100644 (file)
@@ -59,7 +59,7 @@ main (int argc, char **argv)
        bindtextdomain (PACKAGE, LOCALEDIR);
        textdomain (PACKAGE);
 
-       if (process_arguments (argc, argv) != TRUE)
+       if (process_arguments (argc, argv) == ERROR)
                usage4 (_("Could not parse arguments\n"));
 
        /* open the MRTG log file for reading */
@@ -306,9 +306,6 @@ validate_arguments (void)
 
 
 
-
-
-\f
 void
 print_help (void)
 {
@@ -319,7 +316,7 @@ print_help (void)
 
        printf(_("\
 This plugin will check either the average or maximum value of one of the\n\
-two variables recorded in an MRTG log file.\n"));
+two variables recorded in an MRTG log file.\n\n"));
 
        print_usage ();
 
@@ -372,15 +369,14 @@ this plugin works well for monitoring that kind of data as well.\n\n"));
 
 
 
-
 /* original command line: 
         <log_file> <expire_minutes> <AVG|MAX> <variable> <vwl> <vcl> <label> [units] */
 
 void
 print_usage (void)
 {
-       printf (_("\
+       printf ("\
 Usage: %s -F log_file -a <AVG | MAX> -v variable -w warning -c critical\n\
-  [-l label] [-u units] [-e expire_minutes] [-t timeout] [-v]\n"), progname);
-       printf (_(UT_HLP_VRS), progname, progname);
+                  [-l label] [-u units] [-e expire_minutes] [-t timeout]\n\
+                  [-v]\n", progname);
 }