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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 8617871a..5a0ab8cc 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -83,6 +83,9 @@ main (int argc, char **argv)
83 bindtextdomain (PACKAGE, LOCALEDIR); 83 bindtextdomain (PACKAGE, LOCALEDIR);
84 textdomain (PACKAGE); 84 textdomain (PACKAGE);
85 85
86 /* Parse extra opts if any */
87 argv=np_extra_opts (&argc, argv, progname);
88
86 if (process_arguments (argc, argv) == ERROR) 89 if (process_arguments (argc, argv) == ERROR)
87 usage4 (_("Could not parse arguments")); 90 usage4 (_("Could not parse arguments"));
88 91
@@ -379,6 +382,7 @@ print_help (void)
379 print_usage (); 382 print_usage ();
380 383
381 printf (_(UT_HELP_VRSN)); 384 printf (_(UT_HELP_VRSN));
385 printf (_(UT_EXTRA_OPTS));
382 386
383 printf (" %s\n", "-H, --hostname=HOST"); 387 printf (" %s\n", "-H, --hostname=HOST");
384 printf (" %s\n", _("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)")); 388 printf (" %s\n", _("name or IP Address of host to ping (IP Address bypasses name lookup, reducing system load)"));
@@ -395,6 +399,13 @@ print_help (void)
395 printf (" %s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)")); 399 printf (" %s\n", _("THRESHOLD is <rta>,<pl>%% where <rta> is the round trip average travel time (ms)"));
396 printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of")); 400 printf (" %s\n", _("which triggers a WARNING or CRITICAL state, and <pl> is the percentage of"));
397 printf (" %s\n", _("packet loss to trigger an alarm state.")); 401 printf (" %s\n", _("packet loss to trigger an alarm state."));
402
403#ifdef NP_EXTRA_OPTS
404 printf ("\n");
405 printf ("%s\n", _("Notes:"));
406 printf (_(UT_EXTRA_OPTS_NOTES));
407#endif
408
398 printf (_(UT_SUPPORT)); 409 printf (_(UT_SUPPORT));
399} 410}
400 411