How can I monitor ClamAV daemon memory and CPU usage from the command line?

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:

clamdtop

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.
  • clamav, memory, CPU, monitor
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I add stronger Postfix restrictions so that the bulk of spam is rejected at the SMTPD level before it gets processed by Amavis?

Overview Warden enables administrators to enforce stricter Postfix SMTPD restrictions. These...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...