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!

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:
    87
    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)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    87
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    leonep likes this.
  5. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    87
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    thank you michael, this is exactly what i am looking for
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  6. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    87
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    i am going to scan only modified file in 24 hours ,

    can it be a right choice? thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    That's one way of configuring clamscan, yes. Ensure it scans both files that were modified, and newly created files.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice