Operating System - HP-UX
1835703 Members
2676 Online
110082 Solutions
New Discussion

Re: EMS mail to multi user

 
SOLVED
Go to solution
j773303
Super Advisor

EMS mail to multi user

How to configure EMS message to send to multiple user? The default is root. Thanks.

NOTE: hpux 11.11
Hero
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: EMS mail to multi user

You can set an alias for root in /etc/mail/aliases and have all of root's mails go to multiple users.

Your other option is to go into /etc/opt/resmon/lbin/monconfig and configure EMS to send multiple e-mails. I don't recall if you can specify multiple e-mail addresses on a single monitor configuration line in EMS or not and I can't test at the moment.
Steven E. Protter
Exalted Contributor

Re: EMS mail to multi user

I believe you can also configure EMS to execute a shell script, which can handle a more customized response.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
j773303
Super Advisor

Re: EMS mail to multi user

Does /var/stm/config/tools/monitor/*sapcfg can't configure multiple e-mail address?
Such as below:
MONITOR: /system/events/ups
Criteria Threshold: MAJOR WARNING
Criteria Operator: >=
Target Type: EMAIL
Target EMAIL address: root
Target EMAIL address: Tom
Hero
j773303
Super Advisor

Re: EMS mail to multi user

How to set an alias for root in /etc/mail/aliases and have all of root's mails go to multiple users ? Thanks in advanced.
Hero
Patrick Wallek
Honored Contributor

Re: EMS mail to multi user

vi the aliases file.

I believe the syntax of the file is:

root : address1,address2

So you could have:

root : someone@somewhere.com,someoneelse@somewhere.com

And just keep doing that. Check the aliases file for exact syntax. It should be documented in there.

After you are finished modifying the aliases file you must run the 'newaliases' command.

# newaliases
Chris Watkins_1
Respected Contributor

Re: EMS mail to multi user

In your config, you could specify a target alias instead of root.
This way, you won't mess with other things that you'd want to
go "only" to root on the local machine. If that's not an issue,
there's yet another option, which is placing a .forward file
in root's home directory. (containing a group address to send to)

Not without 2 backups and an Ignite image!