LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   clamd service didn't start (https://www.linuxquestions.org/questions/linux-server-73/clamd-service-didnt-start-802306/)

neverland 04-15-2010 10:39 PM

clamd service didn't start
 
Hi there I try to start clamd service since I found "PROCS CRITICAL: 0 processes with command name 'clamd'" from nagios.
so I check at its log file at "tail /home/clamav/logs/clamd.log" it said that log file exceeding maximum limit so I try to rotate log by
pico /root/123/etc/logrotate.d/clamd
/home/clamav/logs/clamd.log {
rotate 12
weekly
compress
delaycompress
create 640 clamav adm
postrotate
/etc/init.d/clamav restart > /dev/null
endscript
}
logrotate -f /root/123/etc/logrotate.d/clamd

then I check the log again I found different error instead (like below)
root@pat:/# tail /home/clamav/logs/clamd.log
Fri Apr 16 05:31:43 2010 -> Log file size limited to 1048576 bytes.
Fri Apr 16 05:31:43 2010 -> Reading databases from /home/clamav/var/lib/clamav
Fri Apr 16 05:31:43 2010 -> Not loading PUA signatures.
Fri Apr 16 05:31:43 2010 -> ERROR: Malformed database
Fri Apr 16 05:33:25 2010 -> +++ Started at Fri Apr 16 05:33:25 2010
Fri Apr 16 05:33:25 2010 -> clamd daemon 0.92.1 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Fri Apr 16 05:33:25 2010 -> Log file size limited to 1048576 bytes.
Fri Apr 16 05:33:25 2010 -> Reading databases from /home/clamav/var/lib/clamav
Fri Apr 16 05:33:25 2010 -> Not loading PUA signatures.
Fri Apr 16 05:33:25 2010 -> ERROR: Malformed database

Please help!
Thanks in advance

bathory 04-16-2010 12:09 AM

Hi,

With clamd stopped you can (re)move the databases from /home/clamav/var/lib/clamav and run freshclam again to get the newer versions.

Regards

neverland 04-19-2010 01:51 AM

Quote:

Originally Posted by bathory (Post 3937177)
Hi,

With clamd stopped you can (re)move the databases from /home/clamav/var/lib/clamav and run freshclam again to get the newer versions.

Regards

Thank by the way, this issue is already solved by upgrade clamav


All times are GMT -5. The time now is 03:05 AM.