Code

Attempt at fixing check_snmp multiline output:
[nagiosplug.git] / plugins / check_ide_smart.c
index b0b0189051e4b642dbfadc1cac31b945fe267ed6..3811dc12059739c7b3b8516c2e24ac6b29de2bb8 100644 (file)
@@ -158,9 +158,6 @@ main (int argc, char *argv[])
        values_t values;
        int fd;
 
-       /* Parse extra opts if any */
-       argv=np_extra_opts (&argc, argv, progname);
-
        static struct option longopts[] = { 
                {"device", required_argument, 0, 'd'}, 
                {"immediate", no_argument, 0, 'i'}, 
@@ -173,6 +170,9 @@ main (int argc, char *argv[])
                {0, 0, 0, 0}
        };
 
+       /* Parse extra opts if any */
+       argv=np_extra_opts (&argc, argv, progname);
+
        setlocale (LC_ALL, "");
        bindtextdomain (PACKAGE, LOCALEDIR);
        textdomain (PACKAGE);
@@ -489,8 +489,8 @@ print_help (void)
 
   print_usage ();
 
-  printf (_(UT_HELP_VRSN));
-  printf (_(UT_EXTRA_OPTS));
+  printf (UT_HELP_VRSN);
+  printf (UT_EXTRA_OPTS);
 
   printf (" %s\n", "-d, --device=DEVICE");
   printf ("    %s\n", _("Select device DEVICE"));
@@ -509,10 +509,10 @@ print_help (void)
 #ifdef NP_EXTRA_OPTS
   printf ("\n");
   printf ("%s\n", _("Notes:"));
-  printf (_(UT_EXTRA_OPTS_NOTES));
+  printf (UT_EXTRA_OPTS_NOTES);
 #endif
 
-  printf (_(UT_SUPPORT));
+  printf (UT_SUPPORT);
 }
 
  /* todo : add to the long nanual as example