summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_snmp.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 6f187113..5344b930 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -68,19 +68,23 @@
68 -R, --eregi=REGEX\n\ 68 -R, --eregi=REGEX\n\
69 Return OK state (for that OID) if case-insensitive extended REGEX matches\n\ 69 Return OK state (for that OID) if case-insensitive extended REGEX matches\n\
70 -l, --label=STRING\n\ 70 -l, --label=STRING\n\
71 Prefix label for output from plugin (default -s 'SNMP')\n" 71 Prefix label for output from plugin (default -s 'SNMP')\n\
72 -v, --verbose\n\
73 Debugging the output\n\
74
75 "
72 76
73#define NOTES "\ 77#define NOTES "\
74- This plugin uses the 'snmpget' command included with the UCD-SNMP package.\n\ 78- This plugin uses the 'snmpget' command included with the NET-SNMP package.\n\
75 If you don't have the package installed, you will need to download it from\n\ 79 If you don't have the package installed, you will need to download it from\n\
76 http://ucd-snmp.ucdavis.edu before you can use this plugin.\n\ 80 http://net-snmp.sourceforge.net before you can use this plugin.\n\
77- Multiple OIDs may be indicated by a comma- or space-delimited list (lists with\n\ 81- Multiple OIDs may be indicated by a comma- or space-delimited list (lists with\n\
78 internal spaces must be quoted)\n\ 82 internal spaces must be quoted) [max 8 OIDs]\n\
79- Ranges are inclusive and are indicated with colons. When specified as\n\ 83- Ranges are inclusive and are indicated with colons. When specified as\n\
80 'min:max' a STATE_OK will be returned if the result is within the indicated\n\ 84 'min:max' a STATE_OK will be returned if the result is within the indicated\n\
81 range or is equal to the upper or lower bound. A non-OK state will be\n\ 85 range or is equal to the upper or lower bound. A non-OK state will be\n\
82 returned if the result is outside the specified range.\n\ 86 returned if the result is outside the specified range.\n\
83- If spcified in the order 'max:min' a non-OK state will be returned if the\n\ 87- If specified in the order 'max:min' a non-OK state will be returned if the\n\
84 result is within the (inclusive) range.\n\ 88 result is within the (inclusive) range.\n\
85- Upper or lower bounds may be omitted to skip checking the respective limit.\n\ 89- Upper or lower bounds may be omitted to skip checking the respective limit.\n\
86- Bare integers are interpreted as upper limits.\n\ 90- Bare integers are interpreted as upper limits.\n\
@@ -418,10 +422,10 @@ process_arguments (int argc, char **argv)
418 while (1) { 422 while (1) {
419#ifdef HAVE_GETOPT_H 423#ifdef HAVE_GETOPT_H
420 c = 424 c =
421 getopt_long (argc, argv, "hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:", 425 getopt_long (argc, argv, "hvVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:",
422 long_options, &option_index); 426 long_options, &option_index);
423#else 427#else
424 c = getopt (argc, argv, "hVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:"); 428 c = getopt (argc, argv, "hvVt:c:w:H:C:o:e:E:d:D:s:R:r:l:u:p:");
425#endif 429#endif
426 430
427 if (c == -1 || c == EOF) 431 if (c == -1 || c == EOF)