diff --git a/plugins/check_http.c b/plugins/check_http.c
index dd0582199fdd721583ba54bf04331eeeed414ad5..6e76706277d702712a92bfa3e34656b9fcb29bf5 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
switch (c) {
case '?': /* usage */
- printf (_("%s: Unknown argument: %s\n\n"), progname, optarg);
- print_usage ();
- exit (STATE_UNKNOWN);
+ usage2 (_("Unknown argument"), optarg);
break;
case 'h': /* help */
print_help ();
break;
case 'S': /* use SSL */
#ifndef HAVE_SSL
- usage (_("check_http: invalid option - SSL is not available\n"));
+ usage4 (_("Invalid option - SSL is not available"));
#endif
use_ssl = TRUE;
if (specify_port == FALSE)
check_cert = TRUE;
}
#else
- usage (_("Invalid option - SSL is not available\n"));
+ usage4 (_("Invalid option - SSL is not available"));
#endif
break;
case 'f': /* onredirect */
void
print_usage (void)
{
- printf (_("\
+ printf ("\
Usage: %s -H <vhost> | -I <IP-address>) [-u <uri>] [-p <port>]\n\
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]\n\
[-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]\n\
[-s string] [-l] [-r <regex> | -R <case-insensitive regex>]\n\
[-P string] [-m min_pg_size] [-4|-6] [-N] [-M <age>]\n\
- [-A string] [-k string]\n"), progname);
+ [-A string] [-k string]\n", progname);
}