diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-05-07 10:02:42 (GMT) |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-05-07 10:02:42 (GMT) |
commit | 44f8455b2cf248c6f50c35bfc3510d2946084c5b (patch) | |
tree | 26b696c5d61872f1d41466be9fcc650c22d75aeb /plugins/check_snmp.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_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index b943565..0acade2 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -176,6 +176,9 @@ main (int argc, char **argv) | |||
176 | timeout_interval = DEFAULT_TIMEOUT; | 176 | timeout_interval = DEFAULT_TIMEOUT; |
177 | retries = DEFAULT_RETRIES; | 177 | retries = DEFAULT_RETRIES; |
178 | 178 | ||
179 | /* Parse extra opts if any */ | ||
180 | argv=np_extra_opts (&argc, argv, progname); | ||
181 | |||
179 | if (process_arguments (argc, argv) == ERROR) | 182 | if (process_arguments (argc, argv) == ERROR) |
180 | usage4 (_("Could not parse arguments")); | 183 | usage4 (_("Could not parse arguments")); |
181 | 184 | ||
@@ -932,6 +935,7 @@ print_help (void) | |||
932 | print_usage (); | 935 | print_usage (); |
933 | 936 | ||
934 | printf (_(UT_HELP_VRSN)); | 937 | printf (_(UT_HELP_VRSN)); |
938 | printf (_(UT_EXTRA_OPTS)); | ||
935 | 939 | ||
936 | printf (_(UT_HOST_PORT), 'p', DEFAULT_PORT); | 940 | printf (_(UT_HOST_PORT), 'p', DEFAULT_PORT); |
937 | 941 | ||
@@ -1017,6 +1021,9 @@ print_help (void) | |||
1017 | printf (" %s\n", _("- Note that only one string and one regex may be checked at present")); | 1021 | printf (" %s\n", _("- Note that only one string and one regex may be checked at present")); |
1018 | printf (" %s\n", _("- All evaluation methods other than PR, STR, and SUBSTR expect that the value")); | 1022 | printf (" %s\n", _("- All evaluation methods other than PR, STR, and SUBSTR expect that the value")); |
1019 | printf (" %s\n", _("returned from the SNMP query is an unsigned integer.")); | 1023 | printf (" %s\n", _("returned from the SNMP query is an unsigned integer.")); |
1024 | #ifdef NP_EXTRA_OPTS | ||
1025 | printf (" -%s", _(UT_EXTRA_OPTS_NOTES)); | ||
1026 | #endif | ||
1020 | 1027 | ||
1021 | printf (_(UT_SUPPORT)); | 1028 | printf (_(UT_SUPPORT)); |
1022 | } | 1029 | } |