Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logwatch not being mailed to root

Status
Not open for further replies.

wlwoman

Technical User
Jul 8, 2001
133
0
0
US
After uninstalling PostFix and reinstalling sendmail, my cron jobs stopped running. Now they are running again but the logwatch and arpwatch files are not being mailed to root.

My logwatch.conf file is as follows:

LogDir = /var/log
MailTo = root
Print = No
Range = yesterday
Detail = 10
Service = All
mailer = /bin/mail

---------------------------

My crontab file is as follows:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

----------------------------------------------

What else do I need to look at? Are these files correct or not?
 
One question, where is the script for your logwatch? Is it in one of the /etc/cron.* folders?

One comment, I dont' see much reason to mail the log entries to "root" which would be a local user!?!?!!? Wouldn't you want to email to a user on another BOX? Or, stream your logs to a log server?



D.E.R. Management - IT Project Management Consulting
 
Try using the /etc/aliases
and put an alias for root
like
root: youruser.

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top