diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 681b842e4a655efa4d98687b58b34b6f25ff4725..7d20b000d178723d786fa65254c3b9515155f952 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ /* Parse extra opts if any */
+ argv=np_extra_opts (&argc, argv, progname);
+
if(process_arguments(argc,argv) == ERROR)
usage4 (_("Could not parse arguments"));
print_usage();
printf (_(UT_HELP_VRSN));
+ printf (_(UT_EXTRA_OPTS));
- printf ("%s\n", _("Options:"));
+ printf ("%s\n", _("Options:"));
printf (" %s\n", "-H, --hostname=HOST");
printf (" %s\n", _("Name of the host to check"));
printf (" %s\n", "-p, --port=INTEGER");
printf (" %s\n", _("output when this happens contains \"Cannot map xxxxx to protocol number\"."));
printf (" %s\n", _("One fix for this is to change the port to something else on check_nt "));
printf (" %s\n", _("and on the client service it\'s connecting to."));
+#ifdef NP_EXTRA_OPTS
+ printf (" -%s", _(UT_EXTRA_OPTS_NOTES));
+#endif
printf (_(UT_SUPPORT));
}
void print_usage(void)
{
printf (_("Usage:"));
- printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]",progname);
+ printf ("%s -H host -v variable [-p port] [-w warning] [-c critical]\n",progname);
printf ("[-l params] [-d SHOWALL] [-t timeout]\n");
}