summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-01 19:33:45 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-01 19:33:45 (GMT)
commit54c21eba62b55503dbe6fda607ccbef4a27a1f14 (patch)
treefd28942d1170f607e5e9979e0b0cdcef5240c88f /plugins/check_by_ssh.c
parent5dc0b02ccc2b549d5ee7c8c7249723af9bd1cb74 (diff)
downloadmonitoring-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.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 9500cb3..6daa1a1 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 */
176int 171int
177process_arguments (int argc, char **argv) 172process_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
347void 338void
348print_help (void) 339print_help (void)
349{ 340{