Operating System - HP-UX
1833850 Members
2112 Online
110063 Solutions
New Discussion

Re: System error messages mailed to me and boss while crontab messages mailed to me only.

 
roel_hawk
Occasional Advisor

System error messages mailed to me and boss while crontab messages mailed to me only.

Hi,

We have setup /etc/aliases to forward system error messages to me and my boss.

My boss does not want to receive cron job report because the size sometimes is big( around 5mb for backup scheduled in cron)

So how can I setup the system so that my boss and I receive system error messages but only I can receive crontab messages.

hope my message is clear.

thanks


Roel
3 REPLIES 3
Siddhartha S Sinha
Occasional Advisor

Re: System error messages mailed to me and boss while crontab messages mailed to me only.

setup /etc/syslog.conf
Peter Nikitka
Honored Contributor

Re: System error messages mailed to me and boss while crontab messages mailed to me only.

Hi,

just use three different mail aliases/adresses:
- one for msgs to you
- one for msgs to your boss
- one for msgs to both

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ivan Krastev
Honored Contributor

Re: System error messages mailed to me and boss while crontab messages mailed to me only.

Normal EMS error messages are received by user root. So just change EMS monitoring to send mail to different user(s) with /etc/opt/resmon/lbin/monconfig. The cron messages will go to root user - so remove your boss from that alias and add it to alias who receive EMS monitoring messages.

regards,
ivan