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.

Removing Clamav/clamd

Discussion in 'General Discussion' started by santrix, Sep 16, 2009.

  1. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    It was becoming a major hog, and as exim filters out anything with an executable attachment I don't see that it's worth the overhead. Anyway, that point is moot... I'm just trying to remove it from my server...

    First, I removed the clamavconnector plugin... so far so good...

    Then Cpanel tried to restart clamd every few minutes as it had not removed the service check from /etc/chkserv.d/chkservd.conf

    So, I did that.

    However, when I look in WHM at Service Status, right at the top, clamd is still showing as failed. Is there something I need to restart to clear this, or is there another config file I need to amend?

    Thanks. Steve.
     
  2. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    Hello,

    This should be easily fixed via the WHM, you can turn off that service and the monitor for the service so it will no longer show that error. The reason you are seeing the error is due to the service not running, but still being monitored. I hope that makes a little more sense for you there. Please let me know if you have any questions.

    Thank you,
    Matthew Curry
     
  3. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    That's what I thought, Matt, but once I had removed the connector from plugins, I started getting the warning emails saying clam had failed... My first port of call was the Service Manager in WHM, but clam had already vanished from there, so I had to remove it manually from chkservd.conf

    However under Service Status at the top there is still a red exclamation mark showing clamd failed. It is this bit I can't get rid of.

    I've also removed /etc/chkserv.d/clamd altogether...

    Ah!!! FOUND IT!!!

    /var/run/chkservd/clamd just needed removing - last bit of the puzzle... hopefully that's the end of it!

    Regards

    Steve
     
    #3 santrix, Sep 18, 2009
    Last edited: Sep 18, 2009
    sneader likes this.
  4. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Funny, I ran into this same thing today, so I'm glad you took time to come back and let us know the solution!!

    BINGO -- worked like a champ! :)

    - Scott
     
  5. santrix

    santrix Well-Known Member

    Joined:
    Nov 30, 2008
    Messages:
    223
    Likes Received:
    2
    Trophy Points:
    18
    Woot!!!! First time that something I posted actually helped someone else!
     
  6. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Very thanks. Removing those two files also helped me.

    Code:
    rm /var/run/chkservd/clamd -f
    rm /etc/chkserv.d/clamd -f
    
    I vote for this to be added to bugzilla. It is a WHM issue when uninstalling the ClamAV plugin.
     
  7. handsonhosting

    handsonhosting Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Omaha, NE
    cPanel Access Level:
    Root Administrator
    Just ran into the same situation today for a user on a VPS machine.

    The fix worked like a champ!
     
  8. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    I'm not getting any joy with this solution.

    I've removed the plugin and both those files. Clamd doesnt appear in service manager or in service status but chkservd is still checking for clamd and also reporting that it failed because it is not installed.

    It seems every time I remove /etc/chkserv.d/clamd and /var/run/chkservd/clamd - both files are re-created a couple of minutes later.
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Try removing it in /etc/chkserv.d/chkservd.conf file as it would be in there as well. That file will list it like:

    Code:
    clamd:1
    Remove the clamd line, then restart chkservd:

    Code:
    /scripts/restartsrv_chkservd
     
  10. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Ahh yes - got it , thanks!
     
Loading...

Share This Page