forked from animatedmax/docs-addon-antivirus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtroubleshooting.html.md.erb
87 lines (59 loc) · 3.59 KB
/
troubleshooting.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: Troubleshooting ClamAV Add-on for PCF
owner: Security Engineering
---
<strong><%= modified_date %></strong>
This topic provides instructions to verify that the ClamAV-based antivirus add-on works with your Pivotal Cloud Foundry (PCF) deployment
and provides general recommendations for troubleshooting and ensuring that the deployment is being protected as you expect.
## <a id="clamav-installation-issues"></a> ClamAV Installation Issues
### <a id=""></a> Ops Manager Fails to Apply Changes
#### Symptom
Applying changes in Ops Manager fails. The bottom of the changelog contains an error message similar to the following:
```
...
Started updating job nats > nats/0 (12bfae02-b4af-4104-b2bd-227ff07b2d92) (canary). Done (00:02:31)
Failed updating job etcd_server > etcd_server/0 (f8e492bf-db09-4d38-8a73-5cf69d7b8a11) (canary): 'etcd_server/0 (f8e492bf-db09-4d38-8a73-5cf69d7b8a11)' is not running after update. Review logs for failed jobs: clamd (00:05:53)
Error 400007: 'etcd_server/0 (f8e492bf-db09-4d38-8a73-5cf69d7b8a11)' is not running after update. Review logs for failed jobs: clamd
```
#### Explanation
The ClamAV mirror server was unavailable during initial deployment.
#### Solution
Review the manifest file, and replace the `database_mirror` key with the address of a stable mirror server.
If you do not have a stable mirror server for reliable initial deployment, use the S3-based mirror: `pivotal-clamav-mirror.s3.amazonaws.com`
<hr>
## <a id="clamav-runtime-issues"></a> ClamAV Runtime Issues
### <a id="clamav-malware-detection"></a> ClamAV Is Not Detecting Malware
#### Symptom
Malware signature or sample malware is not detected, even though the ClamAV daemon is properly configured.
#### Explanation
Virus signatures are not up-to-date.
#### Solution
First, ensure that the [configuration checks](./install.html#verify) have been done,
that the mirror server is correctly configured and is available on the network from within the PCF private subnet,
and that at least one hour has elapsed.
One hour is the default scan schedule interval.
If the local mirror is up-to-date and ClamAV is still failing to detect a malware sample, you might have encountered a new threat.
Pivotal recommends alerting the community via existing channels and reporting the suspicious file directly to the ClamAV team.
<p class="note"><strong>Note</strong>: Pivotal does not provide support for ClamAV detection failures, mirror coordination, or threat tracking activity.</p>
<hr>
### <a id='false-positive-clamav'></a> ClamAV Reports False Positives
####Symptom
ClamAV reports a false postive result; a non-malicious file is reported to be a virus.
####Explanation
ClamAV compares files to its database of known malicious patterns.
ClavAV may detect a non-malicious file as a virus due to a coincidental similarity to those patterns.
####Solution
Submit false positive reports to <a href="https://www.clamav.net/reports/fp">ClamAV</a>.
You can also subscribe to the ClamAV email list to be kept up-to-date with ClamAV database changes.
<hr>
### <a id='cpu-spikes-clamav'></a> Getting CPU Spikes While Using ClamAV
####Symptom
ClamAV is taking more CPU resources than assigned in its configuration.
####Explanation
ClamAV resource consumption is restricted using CGroups.
ClamAV is resource-limited whenever other processes are active.
However, CGroups allows ClamAV to occupy more CPU resources when all other processes are idle,
because it does not impact their performance.
####Solution
This is expected behavior from CGroups.
If a hard limit is required, set the [`enforce_cpu_limit`](./install.html#enforce_cpu_limit) Linux property.