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_ssh.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_ssh.c')
-rw-r--r-- | plugins/check_ssh.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 869b803e..4b5f6b76 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -70,6 +70,9 @@ main (int argc, char **argv) | |||
70 | bindtextdomain (PACKAGE, LOCALEDIR); | 70 | bindtextdomain (PACKAGE, LOCALEDIR); |
71 | textdomain (PACKAGE); | 71 | textdomain (PACKAGE); |
72 | 72 | ||
73 | /* Parse extra opts if any */ | ||
74 | argv=np_extra_opts (&argc, argv, progname); | ||
75 | |||
73 | if (process_arguments (argc, argv) == ERROR) | 76 | if (process_arguments (argc, argv) == ERROR) |
74 | usage4 (_("Could not parse arguments")); | 77 | usage4 (_("Could not parse arguments")); |
75 | 78 | ||
@@ -281,6 +284,7 @@ print_help (void) | |||
281 | print_usage (); | 284 | print_usage (); |
282 | 285 | ||
283 | printf (_(UT_HELP_VRSN)); | 286 | printf (_(UT_HELP_VRSN)); |
287 | printf (_(UT_EXTRA_OPTS)); | ||
284 | 288 | ||
285 | printf (_(UT_HOST_PORT), 'p', myport); | 289 | printf (_(UT_HOST_PORT), 'p', myport); |
286 | 290 | ||
@@ -293,6 +297,12 @@ print_help (void) | |||
293 | 297 | ||
294 | printf (_(UT_VERBOSE)); | 298 | printf (_(UT_VERBOSE)); |
295 | 299 | ||
300 | #ifdef NP_EXTRA_OPTS | ||
301 | printf ("\n"); | ||
302 | printf ("%s\n", _("Notes:")); | ||
303 | printf (_(UT_EXTRA_OPTS_NOTES)); | ||
304 | #endif | ||
305 | |||
296 | printf (_(UT_SUPPORT)); | 306 | printf (_(UT_SUPPORT)); |
297 | } | 307 | } |
298 | 308 | ||