summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index b9435651..0acade25 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}