diff options
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 9500cb3d..6daa1a11 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -167,11 +167,6 @@ main (int argc, char **argv) | |||
167 | return result; | 167 | return result; |
168 | } | 168 | } |
169 | 169 | ||
170 | |||
171 | |||
172 | |||
173 | |||
174 | |||
175 | /* process command-line arguments */ | 170 | /* process command-line arguments */ |
176 | int | 171 | int |
177 | process_arguments (int argc, char **argv) | 172 | process_arguments (int argc, char **argv) |
@@ -238,12 +233,12 @@ process_arguments (int argc, char **argv) | |||
238 | break; | 233 | break; |
239 | case 'H': /* host */ | 234 | case 'H': /* host */ |
240 | if (!is_host (optarg)) | 235 | if (!is_host (optarg)) |
241 | usage2 (_("Invalid host name"), optarg); | 236 | usage2 (_("Invalid hostname/adress"), optarg); |
242 | hostname = optarg; | 237 | hostname = optarg; |
243 | break; | 238 | break; |
244 | case 'p': /* port number */ | 239 | case 'p': /* port number */ |
245 | if (!is_integer (optarg)) | 240 | if (!is_integer (optarg)) |
246 | usage2 (_("port must be an integer"), optarg); | 241 | usage2 (_("port must be a positive integer"), optarg); |
247 | asprintf (&comm,"%s -p %s", comm, optarg); | 242 | asprintf (&comm,"%s -p %s", comm, optarg); |
248 | break; | 243 | break; |
249 | case 'O': /* output file */ | 244 | case 'O': /* output file */ |
@@ -340,10 +335,6 @@ validate_arguments (void) | |||
340 | } | 335 | } |
341 | 336 | ||
342 | 337 | ||
343 | |||
344 | |||
345 | |||
346 | |||
347 | void | 338 | void |
348 | print_help (void) | 339 | print_help (void) |
349 | { | 340 | { |