Debian Codegraph @

check_hp_bladechassis/src/check_hp_bladechassis.pod

raw
1 # Man page for check_hp_bladechassis
2
3 # Man page created with:
4 #
5 # pod2man -s 3pm -r "`./check_hp_bladechassis -V | head -n 1`" -c 'Nagios plugin' check_hp_bladechassis.pod check_hp_bladechassis.3pm
6 #
7
8
9 =head1 NAME
10
11 check_hp_bladechassis - Nagios plugin for checking the status of HP
12 blade enclosures via SNMP
13
14 =head1 SYNOPSIS
15
16 check_hp_bladechassis -H <I<HOSTNAME>> [I<OPTION>]...
17
18 =head1 DESCRIPTION
19
20 check_hp_bladechassis is a plugin for the Nagios monitoring software
21 that checks the hardware health status of a HP blade
22 enclosure/chassis. The plugin is only tested with the c7000 enclosure.
23
24 =head1 COMMON OPTIONS
25
26 =over 4
27
28 =item -H, --hostname I<HOSTNAME>
29
30 The transport address (hostname or IP) of the blade enclosure you want
31 to monitor. This option is mandatory.
32
33 =item -C, --community I<COMMUNITY>
34
35 This option expects a string that is to be used as the SNMP community
36 name when using SNMP version 1 or 2c. By default the community name
37 is set to C<public> if the option is not present.
38
39 =item -p, --perfdata
40
41 Collect performance data. Performance data collected is total
42 power usage.
43
44 =item -t, --timeout I<SECONDS>
45
46 The number of seconds after which the plugin will abort. Default
47 timeout is 30 seconds if the option is not present.
48
49 =item -i, --info
50
51 Prefix any alerts with the enclosure serial number.
52
53 =item -v, --verbose
54
55 In case of an alert, the part number, spare part number and serial
56 number of the failed component is appended to the alert message.
57
58 =item -e, --extinfo
59
60 Display a short summary of system information (product, serial number,
61 firmware and the number of blades and I/O modules) in case of an
62 alert.
63
64 =item -s, --state
65
66 Prefix each alert with its corresponding service state (i.e. warning,
67 critical etc.). This is useful in case of several alerts from the same
68 monitored system.
69
70 =item --short-state
71
72 Same as the B<--state> option above, except that the state is
73 abbreviated to a single letter (W=warning, C=critical etc.).
74
75 =item -d, --debug
76
77 Debug output. Will report status on all monitored subsystems,
78 regardless of their alert state. Will also report total power usage.
79
80 =item -h, --help
81
82 Display help text.
83
84 =item -V, --version
85
86 Display version info.
87
88 =back
89
90 =head1 ADVANCED OPTIONS
91
92 =over 4
93
94 =item -P, --protocol I<PROTOCOL>
95
96 SNMP protocol version. This option is optional and expects a digit
97 (i.e. C<1>, C<2> or C<3>) to define the SNMP version. The default is
98 C<2>, i.e. SNMP version 2c.
99
100 =item --port I<PORT>
101
102 SNMP port of the remote (monitored) system. Defaults to the well-known
103 SNMP port 161.
104
105 =item -U, --username I<SECURITYNAME>
106
107 [SNMPv3] The User-based Security Model (USM) used by SNMPv3 requires
108 that a securityName be specified. This option is required when using
109 SNMP version 3, and expects a string 1 to 32 octets in lenght.
110
111 =item --authpassword I<PASSWORD>, --authkey I<KEY>
112
113 [SNMPv3] By default a securityLevel of C<noAuthNoPriv> is assumed. If
114 the --authpassword option is specified, the securityLevel becomes
115 C<authNoPriv>. The --authpassword option expects a string which is at
116 least 1 octet in length as argument.
117
118 Optionally, instead of the --authpassword option, the --authkey option
119 can be used so that a plain text password does not have to be
120 specified in a script. The --authkey option expects a hexadecimal
121 string produced by localizing the password with the
122 authoritativeEngineID for the specific destination device. The
123 C<snmpkey> utility included with the Net::SNMP distribution can be
124 used to create the hexadecimal string (see L<snmpkey>).
125
126 =item --authprotocol I<ALGORITHM>
127
128 [SNMPv3] Two different hash algorithms are defined by SNMPv3 which can
129 be used by the Security Model for authentication. These algorithms are
130 HMAC-MD5-96 C<MD5> (RFC 1321) and HMAC-SHA-96 C<SHA-1> (NIST FIPS PUB
131 180-1). The default algorithm used by the plugin is HMAC-MD5-96. This
132 behavior can be changed by using this option. The option expects
133 either the string C<md5> or C<sha> to be passed as argument to modify
134 the hash algorithm.
135
136 =item --privpassword I<PASSWORD>, --privkey I<KEY>
137
138 [SNMPv3] By specifying the options --privkey or --privpassword, the
139 securityLevel associated with the object becomes
140 C<authPriv>. According to SNMPv3, privacy requires the use of
141 authentication. Therefore, if either of these two options are present
142 and the --authkey or --authpassword arguments are missing, the
143 creation of the object fails. The --privkey and --privpassword
144 options expect the same input as the --authkey and --authpassword
145 options respectively.
146
147 =item --privprotocol I<ALGORITHM>
148
149 [SNMPv3] The User-based Security Model described in RFC 3414 defines a
150 single encryption protocol to be used for privacy. This protocol,
151 CBC-DES C<DES> (NIST FIPS PUB 46-1), is used by default or if the
152 string C<des> is passed to the --privprotocol option. The Net::SNMP
153 module also supports RFC 3826 which describes the use of
154 CFB128-AES-128 C<AES> (NIST FIPS PUB 197) in the USM. The AES
155 encryption protocol can be selected by passing C<aes> or C<aes128> to
156 the --privprotocol option.
157
158 One of the following arguments are required: des, aes, aes128, 3des,
159 3desde
160
161 =item --linebreak=I<STRING>
162
163 check_hp_bladechassis will sometimes report more than one line,
164 e.g. if there are several alerts. If the script has a TTY, it will use
165 regular linebreaks. If not (which is the case with NRPE) it will use
166 HTML linebreaks. Sometimes it can be useful to control what the plugin
167 uses as a line separator, and this option provides that control.
168
169 The argument is the exact string to be used as the line
170 separator. There are two exceptions, i.e. two keywords that translates
171 to the following:
172
173 =over 4
174
175 =item B<REG>
176
177 Regular linebreaks, i.e. "\n".
178
179 =item B<HTML>
180
181 HTML linebreaks, i.e. "<br/>".
182
183 =back
184
185 This is a rather special option that is normally not needed. The
186 default behaviour should be sufficient for most users.
187
188
189 =head1 DIAGNOSTICS
190
191 The option C<--debug> (or C<-d>) can be specified to display status
192 of all components.
193
194 =head1 DEPENDENCIES
195
196 The perl module Net::SNMP is required on the Nagios host.
197
198 =head1 EXIT STATUS
199
200 If no errors are discovered, a value of 0 (OK) is returned. An exit
201 value of 1 (WARNING) signifies one or more non-critical errors, while
202 2 (CRITICAL) signifies one or more critical errors.
203
204 The exit value 3 (UNKNOWN) is reserved for errors within the script,
205 or errors getting values via SNMP.
206
207 =head1 AUTHOR
208
209 Written by Trond H. Amundsen <[email protected]>
210
211 =head1 BUGS AND LIMITATIONS
212
213 None known at present.
214
215 =head1 INCOMPATIBILITIES
216
217 None known at present.
218
219 Note that as of this writing, the plugin is only tested against the
220 c7000 enclosure.
221
222 =head1 REPORTING BUGS
223
224 Report bugs to <[email protected]>
225
226 =head1 LICENSE AND COPYRIGHT
227
228 This program is free software: you can redistribute it and/or modify
229 it under the terms of the GNU General Public License as published by
230 the Free Software Foundation, either version 3 of the License, or (at
231 your option) any later version.
232
233 This program is distributed in the hope that it will be useful, but
234 WITHOUT ANY WARRANTY; without even the implied warranty of
235 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
236 General Public License for more details.
237
238 You should have received a copy of the GNU General Public License
239 along with this program. If not, see L<http://www.gnu.org/licenses/>.
240
241 =head1 SEE ALSO
242
243 L<http://folk.uio.no/trondham/software/check_hp_bladechassis.html>
244
245 =cut