freshclam.log and clamav.log suddenly empty...

My mail server appears to be running fine, and the databases are updating...but...it appears the clamav and freshclam logs are suddenly empty. No config changes happened on the server, they just stopped logging and haven't restarted. One other odd thing: In Server Admin, under the "Update the virus databases X times per day" it shows "Last update: Not available."

For the heck of it, I decided to temporarily rename the log files to see if I could get fresh versions to generate. Bad things happened...so I moved them back. Suddenly, the virus update log started to work again, but the clamav did not; it is still empty.

Any ideas on what is happening?

Message was edited by: Matt Domenici

Mac OS X (10.5)

Posted on Oct 20, 2008 6:47 PM

Reply
16 replies

Oct 22, 2008 8:28 AM in response to Matt Domenici

So the log rotated this morning on clamav.log -- and surprise, it is now empty too.

I've traced this back to the October 2008 - 007 Security Update on the server. Since applying the update, the logs, when rotated become empty. It appears the server cannot/does not write to them anymore. Has anyone else seen this issue and how can I address it...?

Nov 9, 2008 3:07 PM in response to Matt Domenici

Hi,

I had the very same problem, and I've been able to find a fix. It seems the script /etc/periodic/daily/700.daily.server.cyrus is unable to signal both freshclam and amavisd processes once the log files have been rotated, because it relies on a different "ps" program output, and this makes it fail when searching for the process ID.

I've fixed the problem by changing line 137 of the script from:

+($pid, $tt, $stat, $time, $cmdAndArgs) = split(' ', $line, 5);+

to:

+($pid, $tt, $time, $cmdAndArgs) = split(' ', $line, 5);+

as "ps -axwww" doesn't output status column anymore.

Hope this helps...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

freshclam.log and clamav.log suddenly empty...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.