LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   ClamAV VirusEvent not working... (https://www.linuxquestions.org/questions/linux-security-4/clamav-virusevent-not-working-321091/)

timmywo 05-07-2005 03:50 PM

ClamAV VirusEvent not working...
 
Hi,

I have setup ClamAV on CentOS 4 (RH 4), I have also got Clamuko (real time scanner) working as well.

In the clamd.conf I have put in this line to email me when a virus is found...

Code:

VirusEvent echo %v | mail -s "A virus has been found on the Office Server" my@email.com < /var/log/clamav/clamd.log
This works fine when Clamuko finds the Virus using its real time scanning and I receive an email.

But, when I do a manual scan with clamscan it finds the virus but I do not get emailed.

The VirusEvent should be executed whenever a virus is found, but obviously it is not. Has anyone got any ideas when this is?

Thanks,
Tim

Berhanie 05-08-2005 10:03 AM

clamd.conf is the config file for the clamd daemon. When you scan with clamscan, you're not using clamd.

[edit: to elaborate, if you want to do manual scanning and still make use of clamd, you should use clamdscan instead of clamscan.]

timmywo 05-09-2005 01:06 PM

Thanks! That would be the problem :-)

Tim


All times are GMT -5. The time now is 08:07 PM.