Logwatch won't run from cron. Or at least, I am not getting mails from
it. I have tried changing the user who receives the mail from root to my
local user, jon, in /etc/logwatch/conf/logwatch.conf, which hasn't
helped. (`jon' gets root's mail anyway).
Looking at /etc/cron.daily/00logwatch, the test line returns 0 so I
cannot see why the /usr/sbin/logwatch line would not be executed.
If I obtain a root shell and run logwatch in it, it works.
I can't find any relevant messages in my MTA's log file which would
correspond to a failed delivery.
Any advice on how to diagnose this further would be greatly appreciated!
The only fast explanation I can think of is that logwatch fails to find
anything it can report. Logwatch doesn't send empty mails. (Yes I know
that sounds unlikely because you get something if you run from
command-line).
What happens if you add the option --range all in
/etc/cron.daily/00logwatch? And what if you run
/etc/cron.daily/00logwatch from the command-line? Also, try to run with
--print and --debug -debuglevel-. Maybe this will lead to some useful
output.
Willi
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]