Operating System - Linux
1748280 Members
3718 Online
108761 Solutions
New Discussion юеВ

HPSMH, how to change email recipient

 
SOLVED
Go to solution
Steven McCoy
Valued Contributor

HPSMH, how to change email recipient

Hey everyone,

We have the Proliant Support Pack (latest, I think: 8.15.rhel5.x86_64) installed on our Proliant DL360 G5's here. We would like alerts (like those concerning disk threshold values) sent to someone other than root@localhost.

I've gone through the Settings section on SMH, clicked on 'SNMP Configuration', changed the 'syscontact' line, then clicked 'change', nogo.

I also edited the /etc/snmp/snmpd.conf file manually, then did "/etc/init.d/snmpd restart", nogo. I restarted the HP snmp agents init scripts, nogo.
6 REPLIES 6
Predator
Trusted Contributor

Re: HPSMH, how to change email recipient

Hi Steven McCoy,

Did you set the threshold value in SMH and the event is generated, Are you facing problem on this area ?

Or you are facing problem in getting the alert in the new address or saving the new email address ??
Steven McCoy
Valued Contributor

Re: HPSMH, how to change email recipient

Hi Predator, thank you for your reply.

The alerts are triggered and working, email is properly sent to 'root@localhost'.

The trouble I'm having is when I set a custom 'syscontact' (alerts@localhost), the email is still sent to the previous syscontact (root@localhost), even after restarting snmpd and HP tools (even after a system bounce).
Peter_505
Advisor
Solution

Re: HPSMH, how to change email recipient

Try this,
edit the /opt/compaq/cma.conf file...

look for this line:

trapemail /bin/mail -s 'HP Insight Management Agents Trap Alarm' root

Add you email recipients after this line.

Also suggest you also add this line:

trapemail /usr/bin/logger

that way all traps are logged to /var/log/messages
Steven McCoy
Valued Contributor

Re: HPSMH, how to change email recipient

That was it, thanks a lot Peter!
Steven McCoy
Valued Contributor

Re: HPSMH, how to change email recipient

needed to edit 'trapemail' line in:

/opt/hp/hp-snmp-agents/cma.conf
Steven McCoy
Valued Contributor

Re: HPSMH, how to change email recipient

Just a note, I needed to restart the hp snmp daemon after editing that file:

sudo /etc/init.d/hp-snmp-agents restart