summaryrefslogtreecommitdiffstats
path: root/plugins/check_by_ssh.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_by_ssh.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_by_ssh.c')
-rw-r--r--plugins/check_by_ssh.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 37874bf..9def404 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -76,6 +76,9 @@ main (int argc, char **argv)
76 bindtextdomain (PACKAGE, LOCALEDIR); 76 bindtextdomain (PACKAGE, LOCALEDIR);
77 textdomain (PACKAGE); 77 textdomain (PACKAGE);
78 78
79 /* Parse extra opts if any */
80 argv=np_extra_opts (&argc, argv, progname);
81
79 /* process arguments */ 82 /* process arguments */
80 if (process_arguments (argc, argv) == ERROR) 83 if (process_arguments (argc, argv) == ERROR)
81 usage_va(_("Could not parse arguments")); 84 usage_va(_("Could not parse arguments"));
@@ -350,6 +353,8 @@ print_help (void)
350 353
351 printf (_(UT_HELP_VRSN)); 354 printf (_(UT_HELP_VRSN));
352 355
356 printf (_(UT_EXTRA_OPTS));
357
353 printf (_(UT_HOST_PORT), 'p', "none"); 358 printf (_(UT_HOST_PORT), 'p', "none");
354 359
355 printf (_(UT_IPv46)); 360 printf (_(UT_IPv46));
@@ -402,6 +407,12 @@ print_help (void)
402 printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days"); 407 printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days");
403 printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days"); 408 printf (" %s\n", "[1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days");
404 409
410#ifdef NP_EXTRA_OPTS
411 printf("\n");
412 printf("%s\n", _("Notes:"));
413 printf(_(UT_EXTRA_OPTS_NOTES));
414#endif
415
405 printf(_(UT_SUPPORT)); 416 printf(_(UT_SUPPORT));
406} 417}
407 418