Skip to main content

clamd please scan entire system possible?

Comments

9 comments

  • vanessa
    You can do this, but it's not available in the cPanel or WHM interface. Open a root console and run: clamscan -r -i /
    0
  • jeffschips
    When I do that it runs for a while then I see: clamscan -r -i / Killed
    0
  • vanessa
    you'd have to check the system logs, could have run out of RAM.
    0
  • jeffschips
    I did check: cat error_log | grep clamd nothing there. Also just looked at the entire error_log in /usr/local/cpanel/logs and nothing bad there. . .
    0
  • jeffschips
    I have 4 GB RAM . . .
    0
  • cPRex Jurassic Moderator
    It probably wouldn't be anything in the cPanel logs killing it, so I'd look at /var/log/messages for more details.
    0
  • jeffschips
    turns out that mysql was hogging ram and so cpanel killed the clamd. So I killed mysql for twenty minutes to get even, then ran clamd again and it completed. That was my temporary solution. . .
    0
  • cPRex Jurassic Moderator
    4G of RAM for a busy system with Clamd running may not be enough, as it will use RAM for sure.
    0
  • jeffschips
    Hi @cPRex. The four or five websites on the server are not terribly busy, ever. What I'd rather do is run a cron job to bring down mysqld in the early a.m. to run the virus scan.
    0

Please sign in to leave a comment.