Operating System - HP-UX
1834047 Members
2481 Online
110063 Solutions
New Discussion

Re: Event Monitoring e-mail recipients

 
Rex Pommier
Frequent Advisor

Event Monitoring e-mail recipients

Hi all.

I'm scratching my head on this one. I have EMS set up to monitor tapes and when I get a tape error, EMS e-mails out the error. The problem is that EMS is mailing the error to e-mail addresses that are going away and I can't find where this is configured. I have checked my mail aliases file and it isn't there, nor is it in the EMS monitor configuration.

Here's a portion of the e-mail header:

From: root@sur_s1p0.cnasurety.net
Message-Id: <200506140040.TAA07179@sur_s1p0.cnasurety.net>
To: ajcarlson@cnasurety.com, rrpommier@cnasurety.com, skortman@cnasurety.com
Subject: sur_s1p0: /dev/rmt/1mnb ( HP ) on 0/0/2/0/0.3.27.255.0.0.1 has a hardware failure.

Note the "To:" field. I can't find these e-mail addresses anywhere. Here is my entire /etc/mail/aliases file (except comments):

MAILER-DAEMON : root
postmaster : root
nobody : /dev/null
operator : root
uucp : root
daemon : root
ftp-bugs : root
rex : rex.pommier@cnasurety.com
alan : alan.carlson@cnasurety.com
op2 : op2@cnasurety.com
op4 :op4@cnasurety.com

I have looked through the list of active monitors using monconfig and these e-mail addresses aren't there. The only e-mail I'm doing is either to root or to my current e-mail address (rex.pommier@cnasurety.com). I also don't have any .forward files floating around forwarding e-mails.

Any ideas?
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: Event Monitoring e-mail recipients

According to the email headers, you, as rex.pommier@cnasurety.com, did not get this above message in your mail box. Did you ?

If you did not, when was the last time you remember a newaliases command was run on this server ? As you know /etc/mail/aliases file, by itself does not do anything unless these aliases gets compiled into the aliases.db

If you have received the message, it means that your mail relay server (assuming it is not this hpux box itself but some MS exchange server at someplace, knows the this rrpommier@cnasurety.com address needs to be aliased to rex.pommier@cnassurety.com

I can not see any other explanation. If you have not run 'newaliases' command (as root) lately, you may want to do it.

Hope this helps.
________________________________
UNIX because I majored in cryptology...
Rainer von Bongartz
Honored Contributor

Re: Event Monitoring e-mail recipients

Are you shure you create an up-to-date aliases.db file using command newaliases ?

you ASCII file aliases needs to be transformed to this aliases.db file which is read by sendmail.

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Rex Pommier
Frequent Advisor

Re: Event Monitoring e-mail recipients

Self-inflicted wound. Thanks for the ideas on the aliases within the sendmail portion, but I had run the newaliases. The problem was actually within the EMS system. I had gone through and updated the appropriate monitor but hadn't "kill"ed and restarted the EMS monitoring. I had been under the impression from earlier work in EMS that updating a monitor or adding a new monitor would activate the changes. Apparently that isn't (always) the case. Cycling the EMS within monconfig fixed my problem.

I know - 50 lashes with the wet noodle for not trying the obvious first!