Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_proliant.py
1.4
2013-10-26
- Nagios 2.x
- Nagios 3.x
103196
File | Description |
---|---|
check_proliant.py | version 1.3, 2013-10-01 |
check_proliant.py | version 1.4, 2013-10-26 |
check_proliant.py is a check plugin to check hardware status of HP/Compaq Proliant servers using only the /sbin/hpasmcli binary. It is written in Python and depends on the pexpect package (http://www.noah.org/wiki/Pexpect) which is a purely Python implementation of Expect (and allowing your nagios user passwordless root rights to the hpasmcli binary via sudoers). The plugin checks only the local machine (no SNMP required).
It is capable of checking the status of fans, power supplies, temperatures, DIMMs and processors. For most of these it just checks the "status" line, but for fans it parses out the current temperature and threshold and compares them, giving a critical if the temperature is over the threshold, and a warning if the temperature is within a given percentage of the threshold.
Usage is very simple:
check_proliant.py --type={fan|ps|temp|dimm|proc}
For fans and power supplies, it will also return critical if any of them are listed as not redundant, but this can be overridden by adding a "--ignore-redundant" argument.
Tested on:
OpenSuSE 11.1, hp-health-8.1.1-14.sles10 (rpm), DL380 G3
OpenSuSE 10.1, hpasm-7.7.0-115.sles10 (rpm), DL380 G1
OpenSuSE 10.1, hpasm-7.7.0-115.sles10 (rpm), ML370 G1
OpenSuSE 10.2, hpasm-7.7.0-115.sles10 (rpm), DL360 G1
OpenSuSE 10.2, hpasm-7.7.0-115.sles10 (rpm), DL320 G1
It is capable of checking the status of fans, power supplies, temperatures, DIMMs and processors. For most of these it just checks the "status" line, but for fans it parses out the current temperature and threshold and compares them, giving a critical if the temperature is over the threshold, and a warning if the temperature is within a given percentage of the threshold.
Usage is very simple:
check_proliant.py --type={fan|ps|temp|dimm|proc}
For fans and power supplies, it will also return critical if any of them are listed as not redundant, but this can be overridden by adding a "--ignore-redundant" argument.
Tested on:
OpenSuSE 11.1, hp-health-8.1.1-14.sles10 (rpm), DL380 G3
OpenSuSE 10.1, hpasm-7.7.0-115.sles10 (rpm), DL380 G1
OpenSuSE 10.1, hpasm-7.7.0-115.sles10 (rpm), ML370 G1
OpenSuSE 10.2, hpasm-7.7.0-115.sles10 (rpm), DL360 G1
OpenSuSE 10.2, hpasm-7.7.0-115.sles10 (rpm), DL320 G1