Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ClamScan Takes Too Long

Discussion in 'Security' started by leonep, Mar 27, 2018.

Tags:
  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    hi,
    the clan scan takes too much time. What do you advise me to do? I do not want to disable it because in my scenario i need it. how did you do it?
    change cpu? change antivirus? :) thanks


    ----------- SCAN SUMMARY -----------
    Known viruses: 6462050
    Engine version: 0.99.2
    Scanned directories: 58679
    Scanned files: 575633
    Infected files: 1
    Data scanned: 52112.34 MB
    Data read: 44709.15 MB (ratio 1.17:1)
    Time: 23688.123 sec (394 m 48 s)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's likely just a limitation of your server's hardware. I don't believe you can reduce the scan time without changing out your server's hardware or reducing the number of files you scan.

    Thank you.
     
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    of course , i need to exclude more directories in the scan.....
    normally i scan entire /home excluding some dirs

    this is my command :
    /usr/local/cpanel/3rdparty/bin/clamscan /home --exclude-dir='/home/virtfs|/home/.cpan|/home/.cpcpan|/home/backup' -ir --remove=yes | mail -s "Scansione Virus" mail@example.com
    inside home i have accounts and i can exclude dirs here

    is it possible to exclude dir with wildcard ???
    example: /home/*/logs

    thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    leonep likes this.
  5. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    79
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    thank you michael, this is exactly what i am looking for
     
    cPanelMichael likes this.
Loading...

Share This Page