主题: freshclam daemon error

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本: 8.3
- 使用的 Linux/BSD 发行版名称及版本号: centos 6.x
- 与您的问题相关的日志信息:
==== /etc/cron.daily/freshclam:

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
No updates detected in the log for the freshclam daemon (the
ClamAV update process).  If the freshclam daemon is not running,
you may need to restart it.  Other options:

A. If you no longer wish to run freshclam, deleting the log file
    (default is freshclam.log) will suppress this error message.

B. If you use a different log file, update the appropriate
    configuration file.  For example:
       echo "LogFile = log_file" >> /etc/logwatch/conf/logfiles/clam-update.conf
    where log_file is the filename of the freshclam log file.

C. If you are logging using syslog, you need to indicate that your
    log file uses the syslog format.  For example:
       echo "*OnlyService = freshclam" >> /etc/logwatch/conf/logfiles/clam-update.conf
       echo "*RemoveHeaders" >> /etc/logwatch/conf/logfiles/clam-update.conf

张工,各位大大
我应该要怎么做呢
谢谢了

回复: freshclam daemon error

太懒了。在错误信息里已经给出了非常详细的做法(A、B、C),只要任选其一即可。

出错原因是 ClamAV 无法写入日志文件 /var/log/clamav/freshclam.log,建议检查一下它的文件权限和 owner。修正一下。

3 最后由 carlkyo (2013-04-06 13:46:57) 编辑

回复: freshclam daemon error

做了
echo "*OnlyService = freshclam" >> /etc/logwatch/conf/logfiles/clam-update.conf
echo "*RemoveHeaders" >> /etc/logwatch/conf/logfiles/clam-update.conf
chmod -R 770 /var/log/clamav/
總計 48
-rwxrwx--- 1 clam   clam       0 2013-03-24 03:38 freshclam.log
-rwxrwx--- 1 clamav clamav  5047 2013-03-03 03:38 freshclam.log-20130303
-rwxrwx--- 1 clamav clamav  4216 2013-03-10 03:41 freshclam.log-20130310
-rwxrwx--- 1 clamav clamav  4386 2013-03-17 03:33 freshclam.log-20130317
-rwxrwx--- 1 clamav clamav 18960 2013-04-03 01:30 freshclam.log-20130324
还是不行啊
thanks
不敢乱用他们的方法
http://www.jsxubar.info/clamav-error.html
http://wenku.baidu.com/view/e67b6a2e2af … 5e57c.html

回复: freshclam daemon error

会不会是硬盘满了 ?

用 df -h 看看吧

5 最后由 carlkyo (2013-04-08 12:45:26) 编辑

回复: freshclam daemon error

权限设好了.没问题了
谢谢