Overview
The clamdtop utility provides real-time monitoring of the ClamAV daemon's memory and CPU utilization directly from the command line. This tool is essential for system administrators managing resource allocation and performance optimization on servers running ClamAV.
Prerequisites
- Sudo or root access to the server
- A fully installed and operational ClamAV daemon (clamd)
Execution Instructions
To launch the monitoring interface, execute the appropriate command for your operating system distribution. Ensure you specify the correct configuration file path using the --config-file flag.
RHEL, AlmaLinux, CloudLinux, and Rocky Linux
clamdtop --config-file=/etc/clamd.d/scan.conf
Debian and Ubuntu
clamdtop --config-file=/etc/clamav/clamd.conf
Upon successful execution, the terminal will display a dynamic interface showing current daemon metrics. Refer to the example output below:

Troubleshooting
- Configuration File Not Found: Verify that the specified path matches your distribution's default ClamAV configuration directory.
- Permission Denied: Execute the command with elevated privileges using sudo.
- No Output or Connection Refused: Confirm that the ClamAV daemon is actively running by checking its service status before launching clamdtop.