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.

cPFence now offers a powerful, browser-based WebUI for managing your cluster. The WebUI is fully mobile-friendly, allowing you to adjust server thresholds from any device—including your phone or tablet. You can apply changes per server by selecting the target server from the sidebar dropdown.

Option 1: Adjust Thresholds via WebUI (Recommended)

 

 

 

  1. Open the cPFence WebUI on your Main Control Panel server.
  2. In the sidebar, use the Switch Server dropdown to select the server you want to configure.
  3. Go to System Settings and click Adjust Settings (One Server) under Configuration Management.
  4. Click Load Current Settings to view the server’s current configuration.
  5. Update the thresholds as needed for MEMORY_THRESHOLD, DISK_USAGE_THRESHOLD, DISK_IO_THRESHOLD, INODE_THRESHOLD, and any other values you wish to change.
  6. Click Save & Restart to apply your changes. (No service restart is needed for this)

Your updated thresholds will take effect immediately.

Option 2: Manually Edit Configuration File (CLI Method)

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 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

What is the Recommended SWAP Size with the New Owl AutoMySQL Module?

If you're using the all new Owl AutoMySQL module, We highly recommend disabling SWAP for better...

Troubleshooting Repeated Alerts from cPFence Owl WatchDog

The cPFence Owl WatchDog is a smart monitoring system that automatically keeps your server’s most...

How to Enable / Disable cPFence Owl™ ?

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

Managing Slow Queries and Scripts Using cPFence Owl™

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

What is cPFence Owl™ / DDos Protection ?

cPFence offers a powerful, browser-based WebUI for managing all monitoring and security settings...