diff options
Diffstat (limited to 'plugins/check_udp.c')
-rw-r--r-- | plugins/check_udp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c index c4fbbf8..05ade04 100644 --- a/plugins/check_udp.c +++ b/plugins/check_udp.c | |||
@@ -158,7 +158,7 @@ process_arguments (int argc, char **argv) | |||
158 | break; | 158 | break; |
159 | case 'H': /* hostname */ | 159 | case 'H': /* hostname */ |
160 | if (is_host (optarg) == FALSE) | 160 | if (is_host (optarg) == FALSE) |
161 | usage (_("Invalid host name/address\n")); | 161 | usage2 (_("Invalid host name/address"), optarg); |
162 | server_address = optarg; | 162 | server_address = optarg; |
163 | break; | 163 | break; |
164 | case 'c': /* critical */ | 164 | case 'c': /* critical */ |
@@ -177,7 +177,7 @@ process_arguments (int argc, char **argv) | |||
177 | break; | 177 | break; |
178 | case 't': /* timeout */ | 178 | case 't': /* timeout */ |
179 | if (!is_intnonneg (optarg)) | 179 | if (!is_intnonneg (optarg)) |
180 | usage (_("Timeout interval must be a nonnegative integer\n")); | 180 | usage2 (_("Timeout interval must be a positive integer"), optarg); |
181 | else | 181 | else |
182 | socket_timeout = atoi (optarg); | 182 | socket_timeout = atoi (optarg); |
183 | break; | 183 | break; |
@@ -199,7 +199,7 @@ process_arguments (int argc, char **argv) | |||
199 | c = optind; | 199 | c = optind; |
200 | if (server_address == NULL && c < argc && argv[c]) { | 200 | if (server_address == NULL && c < argc && argv[c]) { |
201 | if (is_host (argv[c]) == FALSE) | 201 | if (is_host (argv[c]) == FALSE) |
202 | usage (_("Invalid host name/address\n")); | 202 | usage2 (_("Invalid host name/address"), optarg); |
203 | server_address = argv[c++]; | 203 | server_address = argv[c++]; |
204 | } | 204 | } |
205 | 205 | ||
@@ -222,8 +222,8 @@ print_help (void) | |||
222 | { | 222 | { |
223 | print_revision (progname, revision); | 223 | print_revision (progname, revision); |
224 | 224 | ||
225 | printf (_("Copyright (c) 1999 Ethan Galstad\n")); | 225 | printf ("Copyright (c) 1999 Ethan Galstad\n"); |
226 | printf (_(COPYRIGHT), copyright, email); | 226 | printf (COPYRIGHT, copyright, email); |
227 | 227 | ||
228 | printf (_("\ | 228 | printf (_("\ |
229 | This plugin tests an UDP connection with the specified host.\n\n")); | 229 | This plugin tests an UDP connection with the specified host.\n\n")); |