1847257 Members
6146 Online
110263 Solutions
New Discussion

Re: EMS

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

EMS

Hi,

I would like to configure EMS to send the alert to another host in the same network.How can I configure ems in such a way. In short, from system A ems need to send an alert to one file in system B.

6 REPLIES 6
Tim Nelson
Honored Contributor
Solution

Re: EMS

There is a UDP option in the EMS config. Maybe read up on what that is/does ?

Here are two other ideas.

1) EMS can message to a file. Make that file be supported by other server via NFS

2) EMS already sends to syslog daemon. Configure syslog daemon to send events to other server. ( man syslogd )

/etc/opt/resmon/lbin/monconfig is the configuration menu.

Scot Bean
Honored Contributor

Re: EMS

You can configure EMS to send the alert emails to any email account. By default, EMS emails 'root@hostname'.

I refer you to the EMS doc here http://docs.hp.com/en/B7609-90049/index.html

What we typically do, however, is change the root accounts on all of our machines to use an email alias for the Sys Admins on our team. Then the EMS emails go to the right people for a fix.
aruns_s
Frequent Advisor

Re: EMS

Hi Scot,

Can you please guide me how can I implement that option? Thanks
Bill Hassell
Honored Contributor

Re: EMS

To simplify Scot's approach, we send all EMS messages to the email address: ems-msgs

By definition, this is on the local machine. Now we use the aliases file to spell out the actual destinations for EMS notices. Some of our root users do not need EMS and some non-root users do indeed need to know about alerts. And by using ems-msgs, we can change the distribution list at any time without changing EMS files.

Here's the technique. First, we do not use monconfig as it is a very primitive tool that cannot remove or change existing entries. Instead, we simply use vi to edit each of the notification files. The files are all located in:

/usr/sbin/stm/uut/bin/tools/monitor/

Then edit all of the *.sapcfg files to change the line:

Target EMAIL address: root
to
Target EMAIL address: ems-msgs

Then edit /etc/mail/aliases to add the ems-msgs alias:

ems-msgs: mymail@abc.com, yourmail.xyz.com

Then run newaliases to update the email aliases in memory. Use this command to check on all the EMS monitors:

/etc/opt/resmon/lbin/moncheck


Bill Hassell, sysadmin
aruns_s
Frequent Advisor

Re: EMS

Thanks for the help.
One more help. I was trying to send out a test mail from that server using mailx.We have configured smtp relay server to forward the mails. But attempt to send test message failed with following error.
"DSN: Service unavailable".

Following are the error messages from /var/mail/.

----- The following addresses had permanent fatal errors -----
test@test.com
(reason: 554 Mail from test@test.rcc.nsw.test.com.au rejected for policy reasons.)

----- Transcript of session follows -----
... while talking to smtphubs.intranet.test.com.au:
>>> MAIL From: SIZE=21
<<< 554 Mail from t003957@cgprod03.rcc.nsw.westpac.com.au rejected for policy reasons.
554 5.0.0 Service unavailable
-----------------------------------

Please advice.

Bill Hassell
Honored Contributor

Re: EMS

It's almost impossible to find a company that does not restrict email through the firewall. You'll need to talk to your network and email administrator about allowing a relay of email from your HP-UX machine to the outside world. For instance, you may be using an Exchange or Lotus Notes email server and that server can be configured to accept email for forwarding. Then you would configure the DS option in sendmail.cf for this relay machine.


Bill Hassell, sysadmin