| 1 |
.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32 |
| 2 |
.\" |
| 3 |
.\" Standard preamble: |
| 4 |
.\" ======================================================================== |
| 5 |
.de Sh \" Subsection heading |
| 6 |
.br |
| 7 |
.if t .Sp |
| 8 |
.ne 5 |
| 9 |
.PP |
| 10 |
\fB\\$1\fR |
| 11 |
.PP |
| 12 |
.. |
| 13 |
.de Sp \" Vertical space (when we can't use .PP) |
| 14 |
.if t .sp .5v |
| 15 |
.if n .sp |
| 16 |
.. |
| 17 |
.de Vb \" Begin verbatim text |
| 18 |
.ft CW |
| 19 |
.nf |
| 20 |
.ne \\$1 |
| 21 |
.. |
| 22 |
.de Ve \" End verbatim text |
| 23 |
.ft R |
| 24 |
.fi |
| 25 |
.. |
| 26 |
.\" Set up some character translations and predefined strings. \*(-- will |
| 27 |
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left |
| 28 |
.\" double quote, and \*(R" will give a right double quote. | will give a |
| 29 |
.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to |
| 30 |
.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' |
| 31 |
.\" expand to `' in nroff, nothing in troff, for use with C<>. |
| 32 |
.tr \(*W-|\(bv\*(Tr |
| 33 |
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' |
| 34 |
.ie n \{\ |
| 35 |
. ds -- \(*W- |
| 36 |
. ds PI pi |
| 37 |
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch |
| 38 |
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch |
| 39 |
. ds L" "" |
| 40 |
. ds R" "" |
| 41 |
. ds C` "" |
| 42 |
. ds C' "" |
| 43 |
'br\} |
| 44 |
.el\{\ |
| 45 |
. ds -- \|\(em\| |
| 46 |
. ds PI \(*p |
| 47 |
. ds L" `` |
| 48 |
. ds R" '' |
| 49 |
'br\} |
| 50 |
.\" |
| 51 |
.\" If the F register is turned on, we'll generate index entries on stderr for |
| 52 |
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index |
| 53 |
.\" entries marked with X<> in POD. Of course, you'll have to process the |
| 54 |
.\" output yourself in some meaningful fashion. |
| 55 |
.if \nF \{\ |
| 56 |
. de IX |
| 57 |
. tm Index:\\$1\t\\n%\t"\\$2" |
| 58 |
.. |
| 59 |
. nr % 0 |
| 60 |
. rr F |
| 61 |
.\} |
| 62 |
.\" |
| 63 |
.\" For nroff, turn off justification. Always turn off hyphenation; it makes |
| 64 |
.\" way too many mistakes in technical documents. |
| 65 |
.hy 0 |
| 66 |
.if n .na |
| 67 |
.\" |
| 68 |
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). |
| 69 |
.\" Fear. Run. Save yourself. No user-serviceable parts. |
| 70 |
. \" fudge factors for nroff and troff |
| 71 |
.if n \{\ |
| 72 |
. ds #H 0 |
| 73 |
. ds #V .8m |
| 74 |
. ds #F .3m |
| 75 |
. ds #[ \f1 |
| 76 |
. ds #] \fP |
| 77 |
.\} |
| 78 |
.if t \{\ |
| 79 |
. ds #H ((1u-(\\\\n(.fu%2u))*.13m) |
| 80 |
. ds #V .6m |
| 81 |
. ds #F 0 |
| 82 |
. ds #[ \& |
| 83 |
. ds #] \& |
| 84 |
.\} |
| 85 |
. \" simple accents for nroff and troff |
| 86 |
.if n \{\ |
| 87 |
. ds ' \& |
| 88 |
. ds ` \& |
| 89 |
. ds ^ \& |
| 90 |
. ds , \& |
| 91 |
. ds ~ ~ |
| 92 |
. ds / |
| 93 |
.\} |
| 94 |
.if t \{\ |
| 95 |
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" |
| 96 |
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' |
| 97 |
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' |
| 98 |
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' |
| 99 |
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' |
| 100 |
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' |
| 101 |
.\} |
| 102 |
. \" troff and (daisy-wheel) nroff accents |
| 103 |
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' |
| 104 |
.ds 8 \h'\*(#H'\(*b\h'-\*(#H' |
| 105 |
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] |
| 106 |
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' |
| 107 |
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' |
| 108 |
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] |
| 109 |
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] |
| 110 |
.ds ae a\h'-(\w'a'u*4/10)'e |
| 111 |
.ds Ae A\h'-(\w'A'u*4/10)'E |
| 112 |
. \" corrections for vroff |
| 113 |
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' |
| 114 |
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' |
| 115 |
. \" for low resolution devices (crt and lpr) |
| 116 |
.if \n(.H>23 .if \n(.V>19 \ |
| 117 |
\{\ |
| 118 |
. ds : e |
| 119 |
. ds 8 ss |
| 120 |
. ds o a |
| 121 |
. ds d- d\h'-1'\(ga |
| 122 |
. ds D- D\h'-1'\(hy |
| 123 |
. ds th \o'bp' |
| 124 |
. ds Th \o'LP' |
| 125 |
. ds ae ae |
| 126 |
. ds Ae AE |
| 127 |
.\} |
| 128 |
.rm #[ #] #H #V #F C |
| 129 |
.\" ======================================================================== |
| 130 |
.\" |
| 131 |
.IX Title "CHECK_HP_BLADECHASSIS 8" |
| 132 |
.TH CHECK_HP_BLADECHASSIS 8 "2009-08-20" "check_hp_bladechassis 1.0.1" "Nagios plugin" |
| 133 |
.SH "NAME" |
| 134 |
check_hp_bladechassis \- Nagios plugin for checking the status of HP |
| 135 |
blade enclosures via SNMP |
| 136 |
.SH "SYNOPSIS" |
| 137 |
.IX Header "SYNOPSIS" |
| 138 |
check_hp_bladechassis \-H <\fI\s-1HOSTNAME\s0\fR> [\fI\s-1OPTION\s0\fR]... |
| 139 |
.SH "DESCRIPTION" |
| 140 |
.IX Header "DESCRIPTION" |
| 141 |
check_hp_bladechassis is a plugin for the Nagios monitoring software |
| 142 |
that checks the hardware health status of a \s-1HP\s0 blade |
| 143 |
enclosure/chassis. The plugin is only tested with the c7000 enclosure. |
| 144 |
.SH "COMMON OPTIONS" |
| 145 |
.IX Header "COMMON OPTIONS" |
| 146 |
.IP "\-H, \-\-hostname \fI\s-1HOSTNAME\s0\fR" 4 |
| 147 |
.IX Item "-H, --hostname HOSTNAME" |
| 148 |
The transport address (hostname or \s-1IP\s0) of the blade enclosure you want |
| 149 |
to monitor. This option is mandatory. |
| 150 |
.IP "\-C, \-\-community \fI\s-1COMMUNITY\s0\fR" 4 |
| 151 |
.IX Item "-C, --community COMMUNITY" |
| 152 |
This option expects a string that is to be used as the \s-1SNMP\s0 community |
| 153 |
name when using \s-1SNMP\s0 version 1 or 2c. By default the community name |
| 154 |
is set to \f(CW\*(C`public\*(C'\fR if the option is not present. |
| 155 |
.IP "\-p, \-\-perfdata" 4 |
| 156 |
.IX Item "-p, --perfdata" |
| 157 |
Collect performance data. Performance data collected is total |
| 158 |
power usage. |
| 159 |
.IP "\-t, \-\-timeout \fI\s-1SECONDS\s0\fR" 4 |
| 160 |
.IX Item "-t, --timeout SECONDS" |
| 161 |
The number of seconds after which the plugin will abort. Default |
| 162 |
timeout is 30 seconds if the option is not present. |
| 163 |
.IP "\-i, \-\-info" 4 |
| 164 |
.IX Item "-i, --info" |
| 165 |
Prefix any alerts with the enclosure serial number. |
| 166 |
.IP "\-v, \-\-verbose" 4 |
| 167 |
.IX Item "-v, --verbose" |
| 168 |
In case of an alert, the part number, spare part number and serial |
| 169 |
number of the failed component is appended to the alert message. |
| 170 |
.IP "\-e, \-\-extinfo" 4 |
| 171 |
.IX Item "-e, --extinfo" |
| 172 |
Display a short summary of system information (product, serial number, |
| 173 |
firmware and the number of blades and I/O modules) in case of an |
| 174 |
alert. |
| 175 |
.IP "\-s, \-\-state" 4 |
| 176 |
.IX Item "-s, --state" |
| 177 |
Prefix each alert with its corresponding service state (i.e. warning, |
| 178 |
critical etc.). This is useful in case of several alerts from the same |
| 179 |
monitored system. |
| 180 |
.IP "\-\-short\-state" 4 |
| 181 |
.IX Item "--short-state" |
| 182 |
Same as the \fB\-\-state\fR option above, except that the state is |
| 183 |
abbreviated to a single letter (W=warning, C=critical etc.). |
| 184 |
.IP "\-d, \-\-debug" 4 |
| 185 |
.IX Item "-d, --debug" |
| 186 |
Debug output. Will report status on all monitored subsystems, |
| 187 |
regardless of their alert state. Will also report total power usage. |
| 188 |
.IP "\-h, \-\-help" 4 |
| 189 |
.IX Item "-h, --help" |
| 190 |
Display help text. |
| 191 |
.IP "\-V, \-\-version" 4 |
| 192 |
.IX Item "-V, --version" |
| 193 |
Display version info. |
| 194 |
.SH "ADVANCED OPTIONS" |
| 195 |
.IX Header "ADVANCED OPTIONS" |
| 196 |
.IP "\-P, \-\-protocol \fI\s-1PROTOCOL\s0\fR" 4 |
| 197 |
.IX Item "-P, --protocol PROTOCOL" |
| 198 |
\&\s-1SNMP\s0 protocol version. This option is optional and expects a digit |
| 199 |
(i.e. \f(CW1\fR, \f(CW2\fR or \f(CW3\fR) to define the \s-1SNMP\s0 version. The default is |
| 200 |
\&\f(CW2\fR, i.e. \s-1SNMP\s0 version 2c. |
| 201 |
.IP "\-\-port \fI\s-1PORT\s0\fR" 4 |
| 202 |
.IX Item "--port PORT" |
| 203 |
\&\s-1SNMP\s0 port of the remote (monitored) system. Defaults to the well-known |
| 204 |
\&\s-1SNMP\s0 port 161. |
| 205 |
.IP "\-U, \-\-username \fI\s-1SECURITYNAME\s0\fR" 4 |
| 206 |
.IX Item "-U, --username SECURITYNAME" |
| 207 |
[SNMPv3] The User-based Security Model (\s-1USM\s0) used by SNMPv3 requires |
| 208 |
that a securityName be specified. This option is required when using |
| 209 |
\&\s-1SNMP\s0 version 3, and expects a string 1 to 32 octets in lenght. |
| 210 |
.IP "\-\-authpassword \fI\s-1PASSWORD\s0\fR, \-\-authkey \fI\s-1KEY\s0\fR" 4 |
| 211 |
.IX Item "--authpassword PASSWORD, --authkey KEY" |
| 212 |
[SNMPv3] By default a securityLevel of \f(CW\*(C`noAuthNoPriv\*(C'\fR is assumed. If |
| 213 |
the \-\-authpassword option is specified, the securityLevel becomes |
| 214 |
\&\f(CW\*(C`authNoPriv\*(C'\fR. The \-\-authpassword option expects a string which is at |
| 215 |
least 1 octet in length as argument. |
| 216 |
.Sp |
| 217 |
Optionally, instead of the \-\-authpassword option, the \-\-authkey option |
| 218 |
can be used so that a plain text password does not have to be |
| 219 |
specified in a script. The \-\-authkey option expects a hexadecimal |
| 220 |
string produced by localizing the password with the |
| 221 |
authoritativeEngineID for the specific destination device. The |
| 222 |
\&\f(CW\*(C`snmpkey\*(C'\fR utility included with the Net::SNMP distribution can be |
| 223 |
used to create the hexadecimal string (see snmpkey). |
| 224 |
.IP "\-\-authprotocol \fI\s-1ALGORITHM\s0\fR" 4 |
| 225 |
.IX Item "--authprotocol ALGORITHM" |
| 226 |
[SNMPv3] Two different hash algorithms are defined by SNMPv3 which can |
| 227 |
be used by the Security Model for authentication. These algorithms are |
| 228 |
\&\s-1HMAC\-MD5\-96\s0 \f(CW\*(C`MD5\*(C'\fR (\s-1RFC\s0 1321) and \s-1HMAC\-SHA\-96\s0 \f(CW\*(C`SHA\-1\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 |
| 229 |
180\-1). The default algorithm used by the plugin is \s-1HMAC\-MD5\-96\s0. This |
| 230 |
behavior can be changed by using this option. The option expects |
| 231 |
either the string \f(CW\*(C`md5\*(C'\fR or \f(CW\*(C`sha\*(C'\fR to be passed as argument to modify |
| 232 |
the hash algorithm. |
| 233 |
.IP "\-\-privpassword \fI\s-1PASSWORD\s0\fR, \-\-privkey \fI\s-1KEY\s0\fR" 4 |
| 234 |
.IX Item "--privpassword PASSWORD, --privkey KEY" |
| 235 |
[SNMPv3] By specifying the options \-\-privkey or \-\-privpassword, the |
| 236 |
securityLevel associated with the object becomes |
| 237 |
\&\f(CW\*(C`authPriv\*(C'\fR. According to SNMPv3, privacy requires the use of |
| 238 |
authentication. Therefore, if either of these two options are present |
| 239 |
and the \-\-authkey or \-\-authpassword arguments are missing, the |
| 240 |
creation of the object fails. The \-\-privkey and \-\-privpassword |
| 241 |
options expect the same input as the \-\-authkey and \-\-authpassword |
| 242 |
options respectively. |
| 243 |
.IP "\-\-privprotocol \fI\s-1ALGORITHM\s0\fR" 4 |
| 244 |
.IX Item "--privprotocol ALGORITHM" |
| 245 |
[SNMPv3] The User-based Security Model described in \s-1RFC\s0 3414 defines a |
| 246 |
single encryption protocol to be used for privacy. This protocol, |
| 247 |
CBC-DES \f(CW\*(C`DES\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 46\-1), is used by default or if the |
| 248 |
string \f(CW\*(C`des\*(C'\fR is passed to the \-\-privprotocol option. The Net::SNMP |
| 249 |
module also supports \s-1RFC\s0 3826 which describes the use of |
| 250 |
\&\s-1CFB128\-AES\-128\s0 \f(CW\*(C`AES\*(C'\fR (\s-1NIST\s0 \s-1FIPS\s0 \s-1PUB\s0 197) in the \s-1USM\s0. The \s-1AES\s0 |
| 251 |
encryption protocol can be selected by passing \f(CW\*(C`aes\*(C'\fR or \f(CW\*(C`aes128\*(C'\fR to |
| 252 |
the \-\-privprotocol option. |
| 253 |
.Sp |
| 254 |
One of the following arguments are required: des, aes, aes128, 3des, |
| 255 |
3desde |
| 256 |
.IP "\-\-linebreak=\fI\s-1STRING\s0\fR" 4 |
| 257 |
.IX Item "--linebreak=STRING" |
| 258 |
check_hp_bladechassis will sometimes report more than one line, |
| 259 |
e.g. if there are several alerts. If the script has a \s-1TTY\s0, it will use |
| 260 |
regular linebreaks. If not (which is the case with \s-1NRPE\s0) it will use |
| 261 |
\&\s-1HTML\s0 linebreaks. Sometimes it can be useful to control what the plugin |
| 262 |
uses as a line separator, and this option provides that control. |
| 263 |
.Sp |
| 264 |
The argument is the exact string to be used as the line |
| 265 |
separator. There are two exceptions, i.e. two keywords that translates |
| 266 |
to the following: |
| 267 |
.RS 4 |
| 268 |
.IP "\fB\s-1REG\s0\fR" 4 |
| 269 |
.IX Item "REG" |
| 270 |
Regular linebreaks, i.e. \*(L"\en\*(R". |
| 271 |
.IP "\fB\s-1HTML\s0\fR" 4 |
| 272 |
.IX Item "HTML" |
| 273 |
\&\s-1HTML\s0 linebreaks, i.e. \*(L"<br/>\*(R". |
| 274 |
.RE |
| 275 |
.RS 4 |
| 276 |
.Sp |
| 277 |
This is a rather special option that is normally not needed. The |
| 278 |
default behaviour should be sufficient for most users. |
| 279 |
.SH "DIAGNOSTICS" |
| 280 |
.IX Header "DIAGNOSTICS" |
| 281 |
The option \f(CW\*(C`\-\-debug\*(C'\fR (or \f(CW\*(C`\-d\*(C'\fR) can be specified to display status |
| 282 |
of all components. |
| 283 |
.SH "DEPENDENCIES" |
| 284 |
.IX Header "DEPENDENCIES" |
| 285 |
The perl module Net::SNMP is required on the Nagios host. |
| 286 |
.SH "EXIT STATUS" |
| 287 |
.IX Header "EXIT STATUS" |
| 288 |
If no errors are discovered, a value of 0 (\s-1OK\s0) is returned. An exit |
| 289 |
value of 1 (\s-1WARNING\s0) signifies one or more non-critical errors, while |
| 290 |
2 (\s-1CRITICAL\s0) signifies one or more critical errors. |
| 291 |
.Sp |
| 292 |
The exit value 3 (\s-1UNKNOWN\s0) is reserved for errors within the script, |
| 293 |
or errors getting values via \s-1SNMP\s0. |
| 294 |
.SH "AUTHOR" |
| 295 |
.IX Header "AUTHOR" |
| 296 |
Written by Trond H. Amundsen <[email protected]> |
| 297 |
.SH "BUGS AND LIMITATIONS" |
| 298 |
.IX Header "BUGS AND LIMITATIONS" |
| 299 |
None known at present. |
| 300 |
.SH "INCOMPATIBILITIES" |
| 301 |
.IX Header "INCOMPATIBILITIES" |
| 302 |
None known at present. |
| 303 |
.Sp |
| 304 |
Note that as of this writing, the plugin is only tested against the |
| 305 |
c7000 enclosure. |
| 306 |
.SH "REPORTING BUGS" |
| 307 |
.IX Header "REPORTING BUGS" |
| 308 |
Report bugs to <[email protected]> |
| 309 |
.SH "LICENSE AND COPYRIGHT" |
| 310 |
.IX Header "LICENSE AND COPYRIGHT" |
| 311 |
This program is free software: you can redistribute it and/or modify |
| 312 |
it under the terms of the \s-1GNU\s0 General Public License as published by |
| 313 |
the Free Software Foundation, either version 3 of the License, or (at |
| 314 |
your option) any later version. |
| 315 |
.Sp |
| 316 |
This program is distributed in the hope that it will be useful, but |
| 317 |
\&\s-1WITHOUT\s0 \s-1ANY\s0 \s-1WARRANTY\s0; without even the implied warranty of |
| 318 |
\&\s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0. See the \s-1GNU\s0 |
| 319 |
General Public License for more details. |
| 320 |
.Sp |
| 321 |
You should have received a copy of the \s-1GNU\s0 General Public License |
| 322 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 323 |
.SH "SEE ALSO" |
| 324 |
.IX Header "SEE ALSO" |
| 325 |
<http://folk.uio.no/trondham/software/check_hp_bladechassis.html> |