-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to do health checks and get alerted when ClamD process is NOT up #53
Comments
I am not familiar with Azure Containers, and I can't provide authoritative answers, but I may be able to provide some useful information for you. How did you setup the health probes for clamd? Using If your goal is to determine if the database used by clamd is properly updated, or is outdated, you can check the signature database version clamd is using. If you send a
The latest release number is the third item in this There may be a more straightforward way to check this. You can also use freshclam to notify you of problems using the |
@eliottwiener tks for your comment! Actually, I got this issue Cisco-Talos/clamav#1282 some days ago and I've been trying to find a way to check the clamd process. If I manually run the clamdcheck.sh, it will show the message: ClamD is up and I can also see that there is a health check every 30 seconds like below:
But I'd like to have that message in the console log, so that I can create an alert rule based on that information. Unfortunately, that health check is not run automatically. Currently, I have set up the health probes in Azure Container Apps for ClamAV containers and I'm still trying to reproduce that kind of issue when the ClamD process becomes unresponsive while leaving the ClamAV container running, and then I hope the health probes will dump the failure information into the console log which makes an alert fired as my expectation.
|
I'm trying to do health checks for a ClamAV container on Azure Container Apps. I've already tested the health probes in Container Apps and it works well when I tried to kill the clamd process.
But I'm not sure if it also works when the container fails to load databases during the ClamAV update process. I expect that it will generate an ERROR message to the console log, then the log search alert rule will pick it up and send us an alert. I'm wondering how you guys do health checks for ClamAV containers in that case.
The text was updated successfully, but these errors were encountered: