summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 +0000
commit44f8455b2cf248c6f50c35bfc3510d2946084c5b (patch)
tree26b696c5d61872f1d41466be9fcc650c22d75aeb /plugins/check_smtp.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_smtp.c')
-rw-r--r--plugins/check_smtp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index b1fc7ee0..8ff10b82 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -137,6 +137,9 @@ main (int argc, char **argv)
137 bindtextdomain (PACKAGE, LOCALEDIR); 137 bindtextdomain (PACKAGE, LOCALEDIR);
138 textdomain (PACKAGE); 138 textdomain (PACKAGE);
139 139
140 /* Parse extra opts if any */
141 argv=np_extra_opts (&argc, argv, progname);
142
140 if (process_arguments (argc, argv) == ERROR) 143 if (process_arguments (argc, argv) == ERROR)
141 usage4 (_("Could not parse arguments")); 144 usage4 (_("Could not parse arguments"));
142 145
@@ -771,6 +774,7 @@ print_help (void)
771 print_usage (); 774 print_usage ();
772 775
773 printf (_(UT_HELP_VRSN)); 776 printf (_(UT_HELP_VRSN));
777 printf (_(UT_EXTRA_OPTS));
774 778
775 printf (_(UT_HOST_PORT), 'p', myport); 779 printf (_(UT_HOST_PORT), 'p', myport);
776 780
@@ -812,6 +816,12 @@ print_help (void)
812 printf ("%s\n", _("connects, but incorrect reponse messages from the host result in")); 816 printf ("%s\n", _("connects, but incorrect reponse messages from the host result in"));
813 printf ("%s\n", _("STATE_WARNING return values.")); 817 printf ("%s\n", _("STATE_WARNING return values."));
814 818
819#ifdef NP_EXTRA_OPTS
820 printf ("\n");
821 printf ("%s\n", _("Notes:"));
822 printf (_(UT_EXTRA_OPTS_NOTES));
823#endif
824
815 printf (_(UT_SUPPORT)); 825 printf (_(UT_SUPPORT));
816} 826}
817 827