Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Does anyone know of a way for a HP Linux server to send and email when identifying issues such as hard disk failure? HP System manament is installed however I can only see SNMP and no email options. What would be the best solution for this?

Thank you

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You'll want to make sure you have the HP ProLiant Support Pack or HP Service Pack for ProLiant packages installed. This can be done one of several ways; tar.gz archive, HP SPP DVD, or my preferred method, via Yum and the HP Software Delivery Repository.

Once you have those packages installed, getting SNMP traps and email notification is easy.

For email, simply edit /opt/hp/hp-snmp-agents/cma.conf

Under the trapemail stanza, either replace the email destination of "root" or at the OS level, redirect root email to the appropriate place.

########################################################################
# trapemail is used for configuring email command(s) which will be
# executed whenever a SNMP trap is generated.
# Multiple trapemail lines are allowed.
# Note: any command that reads standard input can be used. For example:
#             trapemail /usr/bin/logger
#       will log trap messages into system log (/var/log/messages).
########################################################################
trapemail /bin/mail -s 'HP Insight Management Agents Trap Alarm' alerts@brazzers.com

Save the file and restart the HP management agents with service hp-snmp-agents restart. Pull a power supply cable, disconnect the ILO network cable or something to test the email alert.

share|improve this answer
    
Thanks for the details I will check this out now –  dgibbs Aug 30 '13 at 10:43
1  
Worked perfectly. Thank you very much for your help :D –  dgibbs Aug 30 '13 at 10:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.