diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index ec944e4c45a379d9ac6365414714a5c0247e9a42..c877f9cc6d4857b019c8b2590677aa7205524163 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
print_revision(progname, NP_VERSION);
exit(STATE_OK);
case 'H': /* hostname */
- if (server_address) free(server_address);
server_address = optarg;
break;
case 's': /* password */
}
}
+ if (server_address == NULL)
+ usage4 (_("You must provide a server address or host name"));
if (vars_to_check==CHECK_NONE)
return ERROR;
print_usage();
- printf (_(UT_HELP_VRSN));
- printf (_(UT_EXTRA_OPTS));
+ printf (UT_HELP_VRSN);
+ printf (UT_EXTRA_OPTS);
printf ("%s\n", _("Options:"));
printf (" %s\n", "-H, --hostname=HOST");
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));
+ printf (" -%s", UT_EXTRA_OPTS_NOTES);
#endif
- printf (_(UT_SUPPORT));
+ printf (UT_SUPPORT);
}