summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 (GMT)
commit44f8455b2cf248c6f50c35bfc3510d2946084c5b (patch)
tree26b696c5d61872f1d41466be9fcc650c22d75aeb /plugins/check_fping.c
parent4d157889e3018119e07bdcc7f48afde1422f7396 (diff)
downloadmonitoring-plugins-44f8455b2cf248c6f50c35bfc3510d2946084c5b.tar.gz
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
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 8617871..5a0ab8c 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