how to setup hardware montoring for HP Proliant server under RHEL 5

note: this article is obsolete, please refer to http://linuxtechres.blogspot.com/2009/09/installing-hardware-monitoring-system.html

Objective: After installing RHEl 5 on HP Proliant server, whenever there's hardware failure, especially hard disk failure and server operating system restart, we will be notified by email.


Steps:

to follow the prompt from screen, and give the default answer except for SNMP trap server IP address and community string

  • setup snmp trap server, make /etc/snmp/snmptrapd.conf as follows:
[root@jephe snmp]# more snmptrapd.conf
traphandle default /usr/bin/perl /usr/bin/traptoemail -s localhost -f hpsnmptrap@domain.com jephe.wu@domain1.com
traphandle default /usr/bin/perl /usr/bin/traptoemail -s localhost -f hpsnmptrap@domain.com jephe.wu@domain2.com

  • start up snmptrapd services and make it automatic for next restart

You can configure to send out email as well after generating snmp trap:
  • go to /opt/compaq to edit cma.conf trapemail line
trapemail /bin/mail -s 'server1 HP Insight Management Agents Trap Alarm' root
  • that's it.