CHECK_HP_BLADECHASSIS(8)
๐ check_hp_bladechassis โ the Nagios plugin that checks your HP blade enclosure's whole vibe ๐
bestie, this is check_hp_bladechassis(8), a Nagios plugin for checking the status of HP blade enclosures via SNMP. no cap, it's giving "is my chassis okay or is it cooked" energy, and honestly? iconic.
โจ NAME โจ
check_hp_bladechassis โ a Nagios plugin for checking the status of HP blade enclosures via SNMP ๐ฆ
๐ธ SYNOPSIS ๐ธ
check_hp_bladechassis -H <HOSTNAME> [OPTION]...
๐ DESCRIPTION ๐
okay so. check_hp_bladechassis is a plugin for the Nagios monitoring software that checks the hardware health status of a HP blade enclosure/chassis. literally its whole job. it walks up to the chassis, taps the glass, and asks "u good?"
๐ซถ heads up: the plugin is only tested with the c7000 enclosure. so if you're running something else, lowkey you're on your own, bestie.
๐ COMMON OPTIONS ๐
-H,--hostname_HOSTNAME_ โ the transport address (hostname or IP) of the blade enclosure you want to monitor. this one is mandatory, no exceptions, it's the main character of this whole operation. ๐-C,--community_COMMUNITY_ โ expects a string to be used as the SNMP community name when you're using SNMP version 1 or 2c. if you don't pass this option, the community name defaults to"public"(yes, the classic default, we love a humble beginning). ๐-p,--perfdataโ collect performance data. the performance data collected here is total power usage. wattage check, periodt. โก-t,--timeout_SECONDS_ โ how many seconds before the plugin gives up and aborts. default timeout is 30 seconds if you don't pass the option. patience is a virtue but 30 is 30. โณ-i,--infoโ prefixes any alerts with the enclosure serial number. so you know exactly which chassis is being dramatic. ๐-v,--verboseโ when there's an alert, the part number, spare part number and serial number of the failed component get appended to the alert message. receipts, fully itemized. ๐งพ-e,--extinfoโ displays a short summary of system information in case of an alert: product, serial number, firmware, and the number of blades and I/O modules. the whole little biography. ๐-s,--stateโ prefixes each alert with its corresponding service state (i.e. warning, critical etc.). genuinely useful when several alerts are coming from the same monitored system and you need to tell them apart. ๐--short-stateโ same as--stateabove, except the state is abbreviated to a single letter (W=warning,C=critical etc.). short king behavior. โจ-d,--debugโ debug output. will report status on all monitored subsystems, regardless of their alert state. will also report total power usage. nothing gets left out, not even the quiet ones. ๐-h,--helpโ display help text. when in doubt, ask for help, that's growth. ๐ซถ-V,--versionโ display version info. ๐
๐ฅ ADVANCED OPTIONS ๐ฅ
-P,--protocol_PROTOCOL_ โ SNMP protocol version. optional, and it expects a digit (i.e.1,2or3) to define the SNMP version. the default is2, i.e. SNMP version 2c. ๐--port_PORT_ โ SNMP port of the remote (monitored) system. defaults to the well-known SNMP port161. ๐ซ-U,--username_SECURITYNAME_ โ [SNMPv3] the User-based Security Model (USM) used by SNMPv3 requires that asecurityNamebe specified. this option is required when using SNMP version 3, and expects a string 1 to 32 octets in lenght. (yes, that's the original's spelling, we keep the facts and we keep the letters, no cap.) ๐--authpassword_PASSWORD_,--authkey_KEY_ โ [SNMPv3] by default asecurityLevelof"noAuthNoPriv"is assumed. if the--authpasswordoption is specified, thesecurityLevelbecomes"authNoPriv". the--authpasswordoption expects a string which is at least 1 octet in length as argument.
optionally, instead of the --authpassword option, the --authkey option can be used so that a plain text password does not have to be specified in a script. the --authkey option expects a hexadecimal string produced by localizing the password with the authoritativeEngineID for the specific destination device. the "snmpkey" utility included with the Net::SNMP distribution can be used to create the hexadecimal string (see snmpkey). ๐๏ธ
--authprotocol_ALGORITHM_ โ [SNMPv3] two different hash algorithms are defined by SNMPv3 which can be used by the Security Model for authentication. these algorithms areHMAC-MD5-96"MD5"(RFC 1321) andHMAC-SHA-96"SHA-1"(NIST FIPS PUB 180-1). the default algorithm used by the plugin isHMAC-MD5-96. this behavior can be changed by using this option. the option expects either the string"md5"or"sha"to be passed as argument to modify the hash algorithm. ๐งฎ--privpassword_PASSWORD_,--privkey_KEY_ โ [SNMPv3] by specifying the options--privkeyor--privpassword, thesecurityLevelassociated with the object becomes"authPriv". according to SNMPv3, privacy requires the use of authentication. therefore, if either of these two options are present and the--authkeyor--authpasswordarguments are missing, the creation of the object fails. ๐ญ the--privkeyand--privpasswordoptions expect the same input as the--authkeyand--authpasswordoptions respectively. ๐--privprotocol_ALGORITHM_ โ [SNMPv3] the User-based Security Model described in RFC 3414 defines a single encryption protocol to be used for privacy. this protocol,CBC-DES"DES"(NIST FIPS PUB 46-1), is used by default or if the string"des"is passed to the--privprotocoloption. theNet::SNMPmodule also supports RFC 3826 which describes the use ofCFB128-AES-128"AES"(NIST FIPS PUB 197) in the USM. the AES encryption protocol can be selected by passing"aes"or"aes128"to the--privprotocoloption.
one of the following arguments are required: des, aes, aes128, 3des, 3desde. ๐
--linebreak=_STRING_ โcheck_hp_bladechassiswill sometimes report more than one line, e.g. if there are several alerts. if the script has a TTY, it will use regular linebreaks. if not (which is the case with NRPE) it will use HTML linebreaks. sometimes it can be useful to control what the plugin uses as a line separator, and this option provides that control.
the argument is the exact string to be used as the line separator. there are two exceptions, i.e. two keywords that translates to the following:
REGโ regular linebreaks, i.e."\n".HTMLโ HTML linebreaks, i.e."<br/>".
this is a rather special option that is normally not needed. the default behaviour should be sufficient for most users. don't overthink it, bestie. ๐
๐ฉบ DIAGNOSTICS ๐ฉบ
the option "--debug" (or "-d") can be specified to display status of all components. โจ
๐ง DEPENDENCIES ๐ง
the perl module Net::SNMP is required on the Nagios host. no module, no monitoring, it's giving empty-handed. ๐
๐ฆ EXIT STATUS ๐ฆ
- if no errors are discovered, a value of
0(OK) is returned. ๐ข slay. - an exit value of
1(WARNING) signifies one or more non-critical errors. 2(CRITICAL) signifies one or more critical errors. ๐จ- the exit value
3(UNKNOWN) is reserved for errors within the script, or errors getting values via SNMP.
๐ AUTHOR ๐
written by Trond H. Amundsen <t.h.amundsen@usit.uio.no> ๐
๐ BUGS AND LIMITATIONS ๐
none known at present. a clean record, we love to see it. โจ
๐ INCOMPATIBILITIES ๐
none known at present.
note that as of this writing, the plugin is only tested against the c7000 enclosure. ๐
๐ฃ REPORTING BUGS ๐ฃ
report bugs to <t.h.amundsen@usit.uio.no> ๐ซถ
๐ LICENSE AND COPYRIGHT ๐
this program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program. if not, see <http://www.gnu.org/licenses/>.
๐ SEE ALSO ๐
<http://folk.uio.no/trondham/software/check_hp_bladechassis.html>
and that's the whole page, bestie!! ๐ this was check_hp_bladechassis version 1.0.1, dated 2009-08-20, from the Nagios plugin manual section 8. go forth and monitor those chassis, you absolute legend. ๐โจ๐ฆ
๐ฆ where this page comes from
- debian bookworm: monitoring-plugins-contrib 42.20230308+deb12u1+b1
- debian trixie: monitoring-plugins-contrib 48.20250420
- ubuntu jammy: monitoring-plugins-contrib 37.20211217ubuntu1
- ubuntu noble: monitoring-plugins-contrib 45.20231212ubuntu2
- ubuntu questing: monitoring-plugins-contrib 48.20250420ubuntu2
- ubuntu resolute: monitoring-plugins-contrib 48.20250420ubuntu3
- ubuntu stonking: monitoring-plugins-contrib 48.20250420ubuntu3
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms