Linode Forum
https://forum.linode.com/

Logwatch Email Report Sent Twice Every Day
https://forum.linode.com/viewtopic.php?f=11&t=9186
Page 1 of 1

Author:  forumstalker [ Wed Jul 25, 2012 7:23 am ]
Post subject:  Logwatch Email Report Sent Twice Every Day

Hello,

My cronjob for logwatch looks like this:

# m h dom mon dow command
0 1 * * * /usr/sbin/logwatch

Root is the only user who can run crons. But I get it twice every day within about 20 minutes of each other instead of just once. It's a dupe report of course. Does anyone have any clues as to why it is sent twice?

Best regards
Jacqueline

Author:  obs [ Wed Jul 25, 2012 7:43 am ]
Post subject:  Re: Logwatch Email Report Sent Twice Every Day

Check /etc/cron.d and /etc/cron.daily for logwatch entries.

Author:  forumstalker [ Wed Jul 25, 2012 8:19 am ]
Post subject:  Re: Logwatch Email Report Sent Twice Every Day

Ahh. Thank you I found it in the cron.daily directory: 00logwatch

Code:
#!/bin/bash

#Check if removed-but-not-purged
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0

#execute
/usr/sbin/logwatch --output mail

#Note: It's possible to force the recipient in above command
#Just pass --mailto address@a.com instead of --output mail



Thank you.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/