How to Change Resource Usage Alert Thresholds in cPFence?

If you're receiving frequent email alerts about server resource usage—such as CPU, memory, disk space, or I/O—you can easily adjust the thresholds to better fit your server environment.

Option 1: Adjust via cPFence UI

    1. Run the following command to open the cPFence user interface:
cpfence --ui
  1. Navigate to: System Settings >> Email Notifications
  2. From there, you can adjust thresholds for CPU load, memory usage, disk space, inode usage, and disk I/O.

Option 2: Manually Edit Configuration File

You can also modify the threshold settings directly by editing the configuration file:

nano /opt/cpfence/config.conf

Look for the following parameters:

# Set the CPU load average threshold to trigger notification emails. 
CPULoadAverageThreshold="3.2"

# Set the threshold percentages for memory, disk usage, and disk I/O. 
MEMORY_THRESHOLD="80"
DISK_USAGE_THRESHOLD="80"
DISK_IO_THRESHOLD="80"
INODE_THRESHOLD="80"

# Duration (in seconds) that usage must remain high before triggering notifications.
time_diff_wait="300"

# Minimum time between consecutive notification emails (in seconds).
email_send_interval="3600"

After saving your changes, cPFence will begin using the new thresholds automatically. No service restart is needed.


Need Further Assistance?

Visit our Knowledgebase or contact our support team for help.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Enable / Disable cPFence Owl™ ?

cPFence Owl™ is a smart 24/7 monitoring system that provides advanced security features,...

What Is Owl AutoMySQL® and How Do I Use It?

Managing MySQL resource usage on shared hosting servers can be a daunting task, especially for...

Managing Slow Queries and Scripts Using cPFence Owl™

Note: It is now recommended to use the automatic feature instead of manual blacklisting. To learn...

Why Does Owl AutoMySQL Kill long Sleeping MySQL Connections?

If you’ve noticed that Owl AutoMySQL is terminating MySQL connections with the status SLEEP and...

What is cPFence Owl™ / DDos Protection ?

cPFence Owl Monitoring Features cPFence Owl™ offers comprehensive monitoring features to keep...