diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 19:33:45 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 19:33:45 +0000 |
commit | 54c21eba62b55503dbe6fda607ccbef4a27a1f14 (patch) | |
tree | fd28942d1170f607e5e9979e0b0cdcef5240c88f /plugins/check_by_ssh.c | |
parent | 5dc0b02ccc2b549d5ee7c8c7249723af9bd1cb74 (diff) | |
download | monitoring-plugins-54c21eba62b55503dbe6fda607ccbef4a27a1f14.tar.gz |
first pass at standardization of messages for the localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@962 f882894a-f735-0410-b71e-b25c423dba1c
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 | { |