FreeBSD: 定期 (8) 太吵了。 如何控制噪音水平?

http://www.freebsd.org/cgi/man ... n%3D8
&
http://developer.apple.com/lib ... .html
船舶C.
http://www.freebsd.org/cgi/man ... Dhtml
实用程序,这是一个整齐组织的公用事业公司,用于定期启动系统功能,例如检查文件系统 ZFS, 安全检查,检查过时的端口等。

问题是定期发送太多字母,包含太多不必要的信息。 它让人们忽略了电子邮件,我们忽略了定期发现的许多问题 (8). 每日电子邮件每天发送一次,每天发送一次电子邮件信件,每周和每月电子邮件也会定期发送。 这些字母具有如下所示的主题:

Subject: $HOSTNAME daily run output
Subject: $HOSTNAME security run output
Subject: $HOSTNAME weekly run output
Subject: $HOSTNAME monthly run output

如何减少从周期性发送的字母数 (8)?

我会在下面发送我的答案,但我想看看别人做了什么。

笔记

: 我有一个类似的问题 Linux, 在
https://serverfault.com/questi ... level
已邀请:

君笑尘

赞同来自:

放置像下一步的东西 /etc/periodic.conf.

以下配置将减少电子邮件中的噪声。 如果这些消息是空的,则会定期 (8) 不会发送电子邮件。 此外,电子邮件安全电子邮件将包含在每日电子邮件中,这也降低了噪声水平。

# /etc/periodic.conf overrides the defaults in /etc/defaults/periodic.conf
# This file can be overriden by /etc/periodic.conf.local

# *_show_success, *_show_info & *_show_badconfig are disabled
# per recomendation of periodic(8) and "Absolute FreeBSD" p. 310-311
# and "Essential system administration, 3rd Ed." p. 98

# *_show_badconfig="NO" will suppress messages for tools which are not installed on this system (e.g. ZFS on a system without ZFS).

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="YES"
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"

在上面的示例中,您将收到 90%. 但是,存在一种额外的问题,无法使用标准配置来解决。 FreeBSD (作为 20110601). 场景

/etc/periodic/daily/450.status-security

无论如何,将显示以下毫无意义的消息:

Security check:

-- End of daily output --

纠正在于使用贴片
http://www.freebsd.org/cgi/query-pr.cgi?pr=138692
. 此修补程序将更改返回代码 450.status-security, 所以不会打印额外的消息。

要回复问题请先登录注册