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
cancel
Showing results for 
Search instead for 
Did you mean: 

Events

 
Roro_2
Regular Advisor

Events

Hi,

We have an rp440 running HP-UX 11i v2.
i want to know how to send the events in /var/mail/root to a special e-mail address.

Thanks and Regards

Roger
11 REPLIES
Torsten.
Acclaimed Contributor

Re: Events

Messages from EMS? You can configure EMS to send mail directly to another account. Configure in SAM.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Events

Shalom,

For scripted events, this might work well.

http://www.hpux.ws/?p=7

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
Roro_2
Regular Advisor

Re: Events

Hi Torsten,

Thank you for your concern.

Through EMS , we can not create an entry or an action for every event ;
For example how to create an action for High temperature event using EMS .

Regards

Roger

Torsten.
Acclaimed Contributor

Re: Events

So many events are covert by so many monitors ...

use


/etc/opt/resmon/lbin/monconfig

and (M)odify

to adjust the email address:

============================================================================
============== Monitoring Request Manager Main Menu ==============
============================================================================

Note: Monitoring requests let you specify the events for monitors
to report and the notification methods to use.

Select:
(S)how monitoring requests configured via monconfig
(C)heck detailed monitoring status
(L)ist descriptions of available monitors
(A)dd a monitoring request
(D)elete a monitoring request
(M)odify an existing monitoring request
(E)nable Monitoring
(K)ill (disable) monitoring
(H)elp
(Q)uit
Enter selection: [s]

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
killer1
Advisor

Re: Events

Hello Roger

Its very simple.

Please create a file in root's home directory and put your Email ID in the file.


#vi .forward
roger@hp.com

:wq

Hope This helps

Regards
Roro_2
Regular Advisor

Re: Events

Hello Killer1,

Did you verify your solution ; is it working.

Regards

Roger
smatador
Honored Contributor

Re: Events

Hi,
If you want to redirect mail root to your email I suggest you to read
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=35129
.forward could do the job.
smatador
Honored Contributor

Re: Events

Hi,
Of course you have to configure sendmail to permit this. Check the sendmail.cf and perhaps the smart relay
Torsten.
Acclaimed Contributor

Re: Events

By forwarding you receive each and every mail, even statr and stop notifications. With the monconfig tool you can configure on which level you want to receive mails.
It's up to you ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mel Burslan
Honored Contributor

Re: Events

using .forward file is some sort of patchwork where you do not have a way to modify mail configuration. And it is not guaranteed to work.

since you are talking about EMS configurations and such, I am under the impression that you have root capability on this server. If this is true, it makes your life easier.

edit /etc/mail/aliases and insert a line like this :

root: myemail@mydomain.com

run command

newaliases

to compile the binary aliases database

make sure you have a valid mail relay in /etc/mail/sendmail.cf file. Look for a line like this:

DSmailrelayhost

where mailrelayhost is usually a MS exchange server handling your organization's internet email relaying. If it is not there you need to create it and make sure the administrators of this mailrelayhost know that you are going to use it to relay mail and have them add your server's IP address to the authorized mail senders list.

If you just want to direct the mail to another user's mailbox on the same system, you do not need the sendmail.cf modifications. Just add the userid as a root alias, like this

root: user1,user2,sysadmin

in /etc/mail/aliases and run newaliases command. Now all the root mail will be sent to all of the users separated by a comma on this line.

Hope this helps.
________________________________
UNIX because I majored in cryptology...
killer1
Advisor

Re: Events

Hello Roger

You got a handful of solutions now..

You may better do one of the solutions.

Let me confirm you that , my solution is working perfect with my HPUX Servers.

Regards