在Debian Linux稳定版本中,当前和稳定版本之间总是存在滞后。 因此,Clamav软件包中的一个对此非常嘈杂,并且日志文件充满了:
WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.98.5 Recommended version: 0.98.6 DON'T PANIC! Read http://www.clamav.net/support/faq
我正在使用监视软件包Logwatch,并将所有这些发送到我的电子邮件。 有没有办法阻止freshclam写这个警告logging或从Logwatch中跳过?
这是Logwatch的解决方法。
在深入研究程序之后,我发现默认情况下,Debian中没有Logwatchconfiguration文件,它应该被放置在/ etc / logwatch / conf中,并使用默认的configuration文件:/usr/share/logwatch/default.conf/logwatch .conf文件
因此,一个解决方法是从报告中为Logwatch和SKIP clam-auth模块进行自己的configuration。 这可以通过以下步骤完成:
cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf
用最喜欢的编辑器编辑/etc/logwatch/conf/logwatch.conf,在文件中find部分:
# The 'Service' option expects either the name of a filter # (in /usr/share/logwatch/scripts/services/*) or 'All'. # The default service(s) to report on. This should be left as All for # most people. Service = All
并添加这样的行:
Service = "-clam-update"
这将从报告中跳过freshclam日志文件。 这导致了其他危险,如果由于某种原因更新开始失败,您将不会收到通知。