santrix

Well-Known Member
Nov 30, 2008
225
2
68
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.
 

MattCurry

Well-Known Member
Aug 18, 2009
275
0
66
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
 

santrix

Well-Known Member
Nov 30, 2008
225
2
68
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
 
Last edited:
  • Like
Reactions: sneader

sneader

Well-Known Member
Aug 21, 2003
1,194
62
178
La Crosse, WI
cPanel Access Level
Root Administrator
Ah!!! FOUND IT!!!

/var/run/chkservd/clamd just needed removing - last bit of the puzzle... hopefully that's the end of it!
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
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,269
62
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
938
21
168
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.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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