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
- Run the following command to open the cPFence user interface:
cpfence --ui
- Navigate to: System Settings >> Email Notifications
- 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.