diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-05-07 10:02:42 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-05-07 10:02:42 +0000 |
commit | 44f8455b2cf248c6f50c35bfc3510d2946084c5b (patch) | |
tree | 26b696c5d61872f1d41466be9fcc650c22d75aeb /plugins/check_ping.c | |
parent | 4d157889e3018119e07bdcc7f48afde1422f7396 (diff) | |
download | monitoring-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_ping.c')
-rw-r--r-- | plugins/check_ping.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index e22856da..0f3292d0 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c | |||
@@ -92,6 +92,9 @@ main (int argc, char **argv) | |||
92 | addresses = malloc (sizeof(char*) * max_addr); | 92 | addresses = malloc (sizeof(char*) * max_addr); |
93 | addresses[0] = NULL; | 93 | addresses[0] = NULL; |
94 | 94 | ||
95 | /* Parse extra opts if any */ | ||
96 | argv=np_extra_opts (&argc, argv, progname); | ||
97 | |||
95 | if (process_arguments (argc, argv) == ERROR) | 98 | if (process_arguments (argc, argv) == ERROR) |
96 | usage4 (_("Could not parse arguments")); | 99 | usage4 (_("Could not parse arguments")); |
97 | 100 | ||
@@ -564,6 +567,7 @@ print_help (void) | |||
564 | print_usage (); | 567 | print_usage (); |
565 | 568 | ||
566 | printf (_(UT_HELP_VRSN)); | 569 | printf (_(UT_HELP_VRSN)); |
570 | printf (_(UT_EXTRA_OPTS)); | ||
567 | 571 | ||
568 | printf (_(UT_IPv46)); | 572 | printf (_(UT_IPv46)); |
569 | 573 | ||
@@ -592,6 +596,12 @@ print_help (void) | |||
592 | printf ("%s\n", _("linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in")); | 596 | printf ("%s\n", _("linking to a traceroute CGI contributed by Ian Cass. The CGI can be found in")); |
593 | printf ("%s\n", _("the contrib area of the downloads section at http://www.nagios.org/")); | 597 | printf ("%s\n", _("the contrib area of the downloads section at http://www.nagios.org/")); |
594 | 598 | ||
599 | #ifdef NP_EXTRA_OPTS | ||
600 | printf ("\n"); | ||
601 | printf ("%s\n", _("Notes:")); | ||
602 | printf (_(UT_EXTRA_OPTS_NOTES)); | ||
603 | #endif | ||
604 | |||
595 | printf (_(UT_SUPPORT)); | 605 | printf (_(UT_SUPPORT)); |
596 | } | 606 | } |
597 | 607 | ||