Date: Wed, 4 Feb 2015 22:02:56 +0200 From: =?windows-1252?Q?Markus_H=E4stbacka?= <midian@ihme.org> To: Gregory Orange <gregory.orange@calorieking.com> Cc: freebsd-questions@freebsd.org Subject: Re: Removing useless info from daily mail Message-ID: <DBB1CF9E-6354-43A0-89BF-E866216AB21D@ihme.org> In-Reply-To: <54CF18C8.7000605@calorieking.com> References: <5625d1cbdd8c77f70fb6515efdb5e587.squirrel@posti.ihme.org> <54CF18C8.7000605@calorieking.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello!
The only thing I’ve done is put this in my periodic.conf:
daily_show_success=NO
daily_show_info=NO
daily_show_badconfig="NO"
weekly_show_success="NO"
weekly_show_info="NO"
weekly_show_badconfig="NO"
monthly_show_success="NO"
monthly_show_info="NO"
monthly_show_badconfig="NO"
# Include security jobs with daily email. No need to send second email.
daily_status_security_inline="NO"
security_show_success="NO"
# Don't need to know about denied packets every day
daily_status_security_ipfdenied_enable="NO"
### Now, enable services which you DO want to be aware of
# Check host for old ports
daily_status_security_portaudit_enable="YES"
# Perform ZFS filesystem checks
daily_status_zfs_enable="YES"
daily_status_security_ipfwdenied_enable="NO"
daily_status_security_ipfwlimit_enable="NO"
security_show_success=“NO”
You can also put in security_status_loginfail_enable=“NO” if you don’t want to see failed sshd logins.
To remove some message that you always get to your dmesg and don’t want to see in your mail you can edit /etc/periodic/security/700.kernelmsg line 49 to look something like:
dmesg 2>/dev/null | egrep -v 'arp: unknown hardware address format’ |
This thing will remove "arp: unknown hardware address format” messages from the daily mail, as an example.
This has resolved most of my too much mail problems.
Regards,
Markus
> On 02.02.2015, at 08:27:20, Gregory Orange <gregory.orange@calorieking.com> wrote:
>
> Hi Markus,
>
> On 07/01/15 15:31, "Markus Hästbacka" wrote:
>> I've been trying to reduce the incoming mail from my servers daily run.
>>
>> I've managed to configure periodic.conf in a way that when there's nothing
>> wrong in the logs I get no mail.
>
> Would you be willing to share your method? I'd like to substantially reduce my incoming mail, and while I figure there are configurable options to do so, I haven't yet put in the time to work them out. I'd be grateful to harness your work and put it to good use on my systems.
>
> Cheers,
> Greg.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBB1CF9E-6354-43A0-89BF-E866216AB21D>
