HP (Compaq)

check_hp

Description:

Check CPUs, fans, array controllers, logical / physical drives, temperature and power supplies on your Proliant servers or blade systems through SNMP.

As of version 2.20 you can use this plugin to retrieve performance data for Smart Array CPUs.

Current Version

3.3

Last Release Date

2019-03-12

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion

License

GPL


Project Files
Project Notes
The plugin uses Compaq/HPs Insight Manager SNMP Agents installed on either Windows or Linux machines to check CPUs, fans, array controllers, logical / physical drives, temperature and power supplies on your Proliant servers or blade systems. Compaq MIBs are included in the attached archive. The new version 2 is a complete rewrite in Perl and only uses the OID-Trees, so you don't need to add the Compaq MIBs to your local configuration. Please do not misread the "-d" parameter! The "-d" parameter stands for "DEBUG" and is not intended for production use inside Nagios! check_hp will give you information about which objects failed if there are any. Release 2.3 just got some documentation updates about the package requirements. Release 2.4 has been renamed, comes with a ChangeLog file and is now under version control. Release 2.5 fixed a serious bug I introduced together with SVN versioning. Release 2.6 introduces checks for tape drives, fibre channel adapters and event log. There has also been some code cleanup for the parts originally taken from check_ifoperstatus. Release 2.7 has some minor cleanup around the cpqHeResilientMemCondition (event log) checks. Release 2.8 fixes one more issue with the cpqHeEventLogCondition. Release 2.9 adds NIC checks and some easier to read descriptions. Release 2.10 and later - please see the ChangeLog from now on!
Reviews (11) Add a Review
Issue with cpqHeEventLogCondition component
by arigaud, November 30, 2017
Nice plugin ! But see my request on github https://github.com/lairsdragon/check_hp

Overall IML entries isn't found by default check

line 521 replaced by

if ($_[3] eq "cpqHeEventLogCondition") {
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Very good plugin.
by Peglas, November 30, 2017
Up and running on Wiindows Server 2016.
Had som problems with exclusion but it was me not seeing that it should not be any spaces after the commas if you have several items to exclude.
I installed the following packages on the windowsserver:
HP Insight Management Agents for Windows Server x64 Editions
HP Insight Management WBEM Providers
iLo Management Controller Driver Package for Windows Server 2016
Helpful? Yes  No 
typo in check
by tjanecek, October 31, 2016
there is wrong name for fiber channel controller status array

line #218
wrong cpqFcaHostCntlrStatus
correct cpqFcaHostCntlrStates

(statUs vs statEs)
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
OID not found
by David7660, May 31, 2016
Hi,

this plugin is working fine on linux server but with windows I have a problem with the OID of the array drive and physical drive, it is notified as "not found"
Helpful? Yes  No 
no cpq/hp component found
by biohaxor, July 31, 2015
Hi! first of all, thank you for your plugin but im getting this error everytime and i cant make it work, im a big newbie in nagios :S
Helpful? Yes  No 
Works fine with Debian/Ubuntu packages
by pestigarribia, June 30, 2014
Hello,
I have tried it and it works fine, as README says you need to change this:
use lib "/usr/local/nagios/libexec";

to fit your distribution.
In debian/ubuntu distro installed with .deb, this is the correct line:
use lib "/usr/lib/nagios/plugins";

Kind regards.
Owner's Reply:

Hi there!

In the last few versions there is a small loop going through some different default folders. Maybe that helps and avoids having to manually change the path. It will make things easier for those who have little experience with nagios - now you just drop it in place and it should work without manual modifications.

If you ever come up with common folders please let me know and I'll add them to the list.

Cheers

Günther


Helpful? Yes  No 
Works well on 2008R2
by smarechal, February 28, 2014
Hello,

It works very well on 2008R2, but i can't make it work on 2012R2.

Thanks for your work!
Helpful? Yes  No 
Great Job !!!
by filthyfool, January 31, 2013
Hi,

this is really an excellent plugin.
Thx for that.
It would be perfect if it would fetch the serial no. and detailed information of the disrupted Hardware and forward the information to the plugin output.
So it would be easier to get in touch with HP itself,and it wouldn´t be necessary to doublecheck the HW information in DBs or HPSIM.
Owner's Reply:

Hi there,

sorry, but I'm not actually checking against these comments at any time. If you need the most up-to-date plugin please visit www.crowdedplace.com.

Anyway, what you propose is interesting enough to be implemented. Unfortunately I am no longer owing any HP hardware, so I would need some help from your side:

1) could you check if these details are available in the SNMP tree (if not for all components, it would be enough for me to know those OIDs that are there)

2) send me the output of the SNMPWALK

You can send this information to me through info@crowdedplace.com

Cheers

Günther


Helpful? Yes  No 
check_hp
by sanjaymp, December 31, 2012
Compaq/HP Agent Check: CPU status - 1.3.6.1.4.1.232.1.2.2.1.1.6 (OID-tree not found, ignoring)
ERROR: No snmp response from 135.x.x.x (alarm)

SNMP agent is running on remote linux server.

define host {
use linux-server
host_name 135-x-x-x.
alias alias
address 135-x-x-x.
check_command check-host-alive
max_check_attempts 3
checks_enabled 1
notification_interval 600 initial_state o
contact_groups Team
}

# service 'Insight Manager'
define service{
use local-service
host_name 135-x-x-x.
service_description Insight Manager
check_command check_hp!public
contact_groups Team
}

# command 'check_hp'
define command{
command_name check_hp
command_line $USER1$/check_hp -H $HOSTADDRESS$ -C $ARG1$ -d
}
Helpful? Yes  No 
Great Plugin!
by ansche, December 31, 2011
Hi,

thank you for developing this plugin, it helps us really monitoring our HP servers. Is it possible to get the serial number of the system with that plugin?

Greetz
Owner's Reply:

Hey there, I'm a bit late I know :-) But yes in theory that should be part of the SNMP tree (somewhere). Would you like to have that as part of the default status output?


Helpful? Yes  No 
by olivier.carre@jci.com, October 31, 2011

1 of 2 found this review helpful.
Helpful? Yes 1 No 1
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.7 (20)
Favorites
3
Views
175,197