HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Using evweb to send e-mails like EMS

 
SOLVED
Go to solution
Olivier Masse
Honored Contributor

Using evweb to send e-mails like EMS

EMS used to come with a no-brainer built-in monitoring request that sent an e-mail to root whenever something of interest happened. I'm trying to mimic this with SFM/Evweb, to have a similar functionality for events that are picked up by the SFM providers.

By following what's documented in evweb_subscribe(1), this should work just by creating a subscription like this:

# evweb subscribe -C -n "test" -t email:to:root@localhost

It creates the subscription as expected, but when I initiate a test event using "/opt/sfm/bin/sfmconfig -t -m", the event is logged correctly in the event viewer but root never gets any e-mail.

Anybody has been able to make this work?

P.S.: Yes, the CMS can send emails (and it works) but I don't trust it; I just want something similar to what EMS does/did as a backup.

Thanks
4 REPLIES
Shinji Teragaito_1
Respected Contributor
Solution

Re: Using evweb to send e-mails like EMS

Hi Oliver,

Yes, I verified this works for me on the following two environments:

* SysFaultMgmt B.04.00.06.02 (11.23)
* SysFaultMgmt C.04.00.05.01 (11.31)

NOTE: SFM diag mode is enabled on both servers.

I can read a test event mail with the serverity 2 and Event# 103 through mailx.

Can you see a problem in /var/adm/syslog/mail.log ? Can you see the test event through evweb eventviewer -E -n xxxxx ?

Best Regards,

Shinji
VK2COT
Honored Contributor

Re: Using evweb to send e-mails like EMS

Hello,

I am almost certain that the following could be your problem:

Dec 12 12:05:06 ia641 sm-mta[2494]: n05156dZ002494: ruleset=check_mail, arg1=, relay=localhost [127.0.0.1], reject=451 4.1.8 Domain of sender address evweb@hp.com does not resolve

By default, evweb creates alerts by
using Sender's address evweb@hp.com. If your
HP-UX server is not configured to accept
messages from external sources, or DNS
is not resolving exernal domains, simply add
support for /etc/mail/access database in
sendmail and lines like:

hp.com OK
.hp.com OK

then:

# cd /etc/mail
# makemap dbm access < access
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start

Then, it works. So, your commands are OK,
Your email services are probably not.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Shinji Teragaito_1
Respected Contributor

Re: Using evweb to send e-mails like EMS

> I am almost certain that the following could be your problem:

Thank you for giving us a good information.

If your suggestion resolves Oliver's problem, customizing the
from address specified in evweb.conf should be another solution.
Don't forget to make the changes valid by issuing the following
command:

(11.23)# /opt/sfm/bin/sfmconfig -c /opt/sfm/conf/evweb.conf
or
(11.31)# /opt/sfm/bin/sfmconfig -c /var/opt/sfm/conf/evweb.conf

I hope this helps all of you.

Shinji
Olivier Masse
Honored Contributor

Re: Using evweb to send e-mails like EMS

These were excellent answers, thanks!! I confirm that the problenm is resolved.