How to install ClamAV after installing HestiaCP?

Hi!
How to manually install the ClamAV if I disabled its installation when installing the panel?
More precisely, I have already installed ClamAV on the system (Debian 10), but should I add it to Hestia’s config files?
I would like to use it to scan sites for viruses and receive scan reports in a panel or email.

I would like to know the answer for this to.

Follow the instructions set by step according the installer related to clamav.

We currently do not support any kind of reports the panel and probally also not per email. But that could some config issue with clamav.

There’s a script here using clamscan which you could adapt for your own use

1 Like

Thank you.

Yes, thank you @pluto !
I found a bit of time to test it and the script is working great. I just edited the folders (web root folders) to scan for some of the unprivileged users and now it runs daily under admin crons without any issue.

About perfomances, of course it depends from the volume to scan, but it’s obviously eating RAM and CPU. I’m using HST 1.3 + Debian 10.

Here below partial log with some hints :

----------- SCAN SUMMARY -----------
Known viruses: 8932395
Engine version: 0.102.4
Scanned directories: 27205
Scanned files: 152907
Infected files: 0
Data scanned: 2395.98 MB
Data read: 2200.39 MB (ratio 1.09:1)
Time: 914.197 sec (15 m 14 s)

----------- SCAN SUMMARY -----------
Known viruses: 8932395
Engine version: 0.102.4
Scanned directories: 752
Scanned files: 5837
Infected files: 0
Data scanned: 453.80 MB
Data read: 213.94 MB (ratio 2.12:1)
Time: 137.100 sec (2 m 17 s)

----------- SCAN SUMMARY -----------
Known viruses: 8932395
Engine version: 0.102.4
Scanned directories: 196
Scanned files: 1374
Infected files: 0
Data scanned: 89.14 MB
Data read: 83.37 MB (ratio 1.07:1)
Time: 34.273 sec (0 m 34 s)

And here the monitors :