# clamav

Source: https://zotonic.com/docs/2698/clamav

URI: https://zotonic.com/id/2698

Language: en



Reports whether the ClamAV daemon (`clamd`) is available. The `m.clamav.is_available` model path sends a ping and returns `true` when the daemon responds with `PONG`, or `false` when the check fails.

The check uses the connection settings documented in `mod_clamav`: a Unix socket with TCP fallback by default, or socket-only or TCP-only access when configured. It checks connectivity; it does not scan a file or check virus database freshness.

Access requires permission to use `mod_admin`; other callers receive `{error, eacces}`. Unknown paths return `{error, unknown_path}`. The admin dashboard loads this check asynchronously on each page load.

Available Model API Paths
-------------------------

| Method | Path pattern    | Description                                                                      |
| ------ | --------------- | -------------------------------------------------------------------------------- |
| `get`  | `/is_available` | Return a boolean indicating whether the virus scanner responds. Requires `use` permission on `mod_admin`. |

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2698?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2698?language=en>)
