Operating System - HP-UX
1834648 Members
2833 Online
110069 Solutions
New Discussion

How do I have EMS send email to other than root?

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

How do I have EMS send email to other than root?

Hello,

EMS is sending email to root with critical and warning conditions. I need to have that email also go to my pager (via my company email account). How do I configure EMS to do this? I can't seem to find any configuration files amd SAM isn't showing me anything under EMS.

Thanks
4 REPLIES 4
Steve Steel
Honored Contributor
Solution

Re: How do I have EMS send email to other than root?

Hi

I did it once

/var/stm/config/tools/monitor normally holds the config files for EMS monitors.

Modify the file
/var/stm/config/tools/monitor/*.sapcfg
to alter root to the wanted user .

cd /var/stm/config/tools/monitor
more disk_em.sapcfg

# WARNING: Do not edit this configuration file.
# Use /etc/opt/resmon/lbin/monconfig to make changes.
#
MONITOR: /storage/events/disks/default
Criteria Threshold: MAJOR WARNING
Criteria Operator: >=
Target Type: SYSLOG
MONITOR: /storage/events/disks/default
Criteria Threshold: MAJOR WARNING
Criteria Operator: >=
Target Type: EMAIL
Target EMAIL address: root

This line shown above ('Target EMAIL address: root') needs changing
to show the email address you want.
Repeat for any monitor .sap files that you wish to change.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: How do I have EMS send email to other than root?

In addition to the putting it in 8.sapcfg files, you can put your email address in /etc/mail/aliases. Define alias as root with system root and your email address. do newalises and any EMs will come to you.

Anil
There is no substitute to HARDWORK
Bernhard Mueller
Honored Contributor

Re: How do I have EMS send email to other than root?

Hi,

you might consider to forward *all* mail sent to root. Just enter something like "root myname@company.com" to a file called .forward in root's home dir.

Regards,
Bernhard
Dave Chamberlin
Trusted Contributor

Re: How do I have EMS send email to other than root?

Thanks for the help! I used monconfig to change the email to an alias that sends the mail to both root and me. I wanted to make sure that root still got a copy of the email so that works great.