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

note: this article is obsolete, please refer to

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.


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
traphandle default /usr/bin/perl /usr/bin/traptoemail -s localhost -f

  • 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.