summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_fping.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 7f05d4d5..5ffcd16e 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -242,9 +242,7 @@ process_arguments (int argc, char **argv)
242 242
243 switch (c) { 243 switch (c) {
244 case '?': /* print short usage statement if args not parsable */ 244 case '?': /* print short usage statement if args not parsable */
245 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 245 usage2 (_("Unknown argument"), optarg);
246 print_usage ();
247 exit (STATE_UNKNOWN);
248 case 'h': /* help */ 246 case 'h': /* help */
249 print_help (); 247 print_help ();
250 exit (STATE_OK); 248 exit (STATE_OK);
@@ -301,15 +299,13 @@ process_arguments (int argc, char **argv)
301 } 299 }
302 } 300 }
303 301
304
305 if (server_name == NULL) 302 if (server_name == NULL)
306 usage (_("Hostname was not supplied\n\n")); 303 usage4 (_("Hostname was not supplied"));
307 304
308 return OK; 305 return OK;
309} 306}
310 307
311 308
312
313int 309int
314get_threshold (char *arg, char *rv[2]) 310get_threshold (char *arg, char *rv[2])
315{ 311{
@@ -351,7 +347,6 @@ get_threshold (char *arg, char *rv[2])
351} 347}
352 348
353 349
354
355void 350void
356print_help (void) 351print_help (void)
357{ 352{
@@ -395,7 +390,6 @@ percentage of packet loss to trigger an alarm state.\n"));
395} 390}
396 391
397 392
398
399void 393void
400print_usage (void) 394print_usage (void)
401{ 395{