summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_fping.c')
-rw-r--r--plugins/check_fping.c71
1 files changed, 16 insertions, 55 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 49615d1..cdaff97 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -356,11 +356,9 @@ print_help (void)
356 printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n"); 356 printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n");
357 printf (COPYRIGHT, copyright, email); 357 printf (COPYRIGHT, copyright, email);
358 358
359 printf (_("This plugin will use the fping command to ping the specified host for a fast check")); 359 printf ("%s\n", _("This plugin will use the fping command to ping the specified host for a fast check"));
360 360
361 printf ("\n"); 361 printf ("%s\n", _("Note that it is necessary to set the suid flag on fping."));
362
363 printf (_("Note that it is necessary to set the suid flag on fping."));
364 362
365 printf ("\n\n"); 363 printf ("\n\n");
366 364
@@ -368,58 +366,21 @@ print_help (void)
368 366
369 printf (_(UT_HELP_VRSN)); 367 printf (_(UT_HELP_VRSN));
370 368
371 printf (" -H, --hostname=HOST"); 369 printf (" %s\n", "-H, --hostname=HOST");
372 370 printf (" %s\n", _("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)"));
373 printf (_("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)")); 371 printf (" %s\n", "-w, --warning=THRESHOLD");
374 372 printf (" %s\n", _("warning threshold pair"));
375 printf ("\n"); 373 printf (" %s\n", "-c, --critical=THRESHOLD");
376 374 printf (" %s\n", _("critical threshold pair"));
377 printf ("-w, --warning=THRESHOLD"); 375 printf (" %s\n", "-b, --bytes=INTEGER");
378 376 printf (" %s\n", _("size of ICMP packet (default: %d)"),PACKET_SIZE);
379 printf ("\n"); 377 printf (" %s\n", "-n, --number=INTEGER");
380 378 printf (" %s\n", _("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
381 printf (_("warning threshold pair"));
382
383 printf ("\n");
384
385 printf (" -c, --critical=THRESHOLD");
386
387 printf ("\n");
388
389 printf (_("critical threshold pair"));
390
391 printf ("\n");
392
393 printf (" -b, --bytes=INTEGER");
394
395 printf (_("size of ICMP packet (default: %d)"),PACKET_SIZE);
396
397 printf ("\n");
398
399 printf (" -n, --number=INTEGER");
400
401 printf ("\n");
402
403 printf (_("number of ICMP packets to send (default: %d)"),PACKET_COUNT);
404
405 printf ("\n");
406
407 printf (_(UT_VERBOSE)); 379 printf (_(UT_VERBOSE));
408
409 printf ("\n"); 380 printf ("\n");
410 381 printf (" %s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)"));
411 printf (_("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)")); 382 printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
412 383 printf (" %s\n", _("packet loss to trigger an alarm state."));
413 printf ("\n");
414
415 printf (_("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
416
417 printf ("\n");
418
419 printf (_("packet loss to trigger an alarm state."));
420
421 printf ("\n");
422
423 printf (_(UT_SUPPORT)); 384 printf (_(UT_SUPPORT));
424} 385}
425 386
@@ -428,5 +389,5 @@ void
428print_usage (void) 389print_usage (void)
429{ 390{
430 printf (_("Usage:")); 391 printf (_("Usage:"));
431 printf (" %s <host_address>\n", progname); 392 printf (" %s <host_address> -w limit -c limit [-b size] [-n number]\n", progname);
432} 393}