Operating System - HP-UX
1753487 Members
4651 Online
108794 Solutions
New Discussion юеВ

Re: Configure logs by mail

 
VICBUR1507
Frequent Advisor

Configure logs by mail

Hi guys!
I need you help me to configure mi HP-UX system to send me emails notification when:
new event in /var/adm/syslog/syslog.log; rc.log
root loggin
ftp root loggin
Can you help me about this.

Thanks
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Configure logs by mail

Shalom,

Write a script to create a file containing the files. perhaps tail -n 500

http://www.hpux.ws/mailfile2

That script will email the report as an attachment.

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
Johnson Punniyalingam
Honored Contributor

Re: Configure logs by mail

>>/var/adm/syslog/syslog.log; rc.log
>> root loggin
>> ftp root loggin

have you configured your sendmail service ..?

Please see the attachement , and you edit the script has per your requirement,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
VICBUR1507
Frequent Advisor

Re: Configure logs by mail

Guys,

This scrit where I put?
Analyst
Trusted Contributor

Re: Configure logs by mail

simple , add that script in cron.

# crontab -e
use the script file as per the requirement.
VICBUR1507
Frequent Advisor

Re: Configure logs by mail

Solved