Hi,

On Sat, Jan 12, 2008 at 07:26:45PM +0000, G.W. Haywood wrote:
> On Sat, 12 Jan 2008 Matthias Hank wrote:
> 
> > Why is my clamd not checking his Database every 300 secs, although he is
> > configured to do so and tells me in his logfile, that he will do it?
> 
> Look at the output of
> 
> clamconf -n
> 
> to see if it's looking at the right database directory?

Yes it is configured correctly.

DatabaseDirectory = "/var/lib/clamav"

On startup, the logfile says:

*******************************
Mon Jan 14 10:59:09 2008 -> Reading databases from /var/lib/clamav
Mon Jan 14 10:59:11 2008 -> Loaded 219958 signatures.
Mon Jan 14 10:59:11 2008 -> Unix socket file /var/run/clamav/clamd.ctl
...
Mon Jan 14 10:59:11 2008 -> Self checking every 300 seconds.
*******************************

But then: Nothing, no SelfCheck logged :-( until scamp.sh notifies clamd of a 
successful
Patterndownload, then clamd reloads its Database:

*******************************
Mon Jan 14 11:30:11 2008 -> No stats for Database check - forcing reload
Mon Jan 14 11:30:12 2008 -> Reading databases from /var/lib/clamav
Mon Jan 14 11:30:14 2008 -> Database correctly reloaded (219961 signatures)
*******************************

No other entries in clamav.log since 10:59:11 ...

Menawhile i added "NotifyClamd" to freshclam.conf, so freshclam will hopefully
notify clamd too, but there is no logged SelfCheck of clamd itself.

If the database Path would be wrong, clamd would have told me so in his logfile.

Any other ideas?

BTW: On one of my other servers, SelfCheck does strange things too.
Even if it is configured to do Selfcheck each 300 secs, it does what it wants:

Mon Jan 14 10:08:45 2008 -> SelfCheck: Database status OK.
Mon Jan 14 10:15:20 2008 -> SelfCheck: Database status OK.
Mon Jan 14 10:23:16 2008 -> SelfCheck: Database status OK.
Mon Jan 14 10:32:27 2008 -> SelfCheck: Database status OK.
Mon Jan 14 10:50:36 2008 -> SelfCheck: Database status OK.
Mon Jan 14 11:00:22 2008 -> SelfCheck: Database status OK.
Mon Jan 14 11:11:00 2008 -> SelfCheck: Database status OK.
Mon Jan 14 11:18:08 2008 -> SelfCheck: Database status OK.
Mon Jan 14 11:29:53 2008 -> SelfCheck: Database status OK.
Mon Jan 14 11:37:01 2008 -> SelfCheck: Database status OK.

This is on debian/4.0

On a FreeBSD Machine, it checks exactly each 300 secs:

Jan 14 11:02:21 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:07:22 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:12:23 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:17:24 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:22:25 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:27:26 scan1 clamd[557]: SelfCheck: Database status OK.
Jan 14 11:32:27 scan1 clamd[557]: SelfCheck: Database status OK.

Greetings,

Matthias
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to