Suppress CSF LFD Warnings for a Specific Process

This article provides a guide to suppress CSF LFD warnings for a specific process. CSF/LFD notification emails are sent by the server when specific criteria are met, for the sake of alerting admins regarding potential security concerns on the server.

In some cases, it may be desirable to ignore specific notifications that may be safe, but due to the CSF configuration, trigger a warning (the subject line contains "Excessive Resource Usage").

Selectively Suppress CSF LFD Warnings

There are many guides out there that outline steps to suppress ALL CSF/LFD notification messages. This is not ideal for all scenarios. In fact, the notification system can be very helpful when CSF is appropriately configured.

However, sometimes, an admin may prefer to allocate additional resources to certain processes which exceed the limits set in CSF config. In this case, the process, will trigger the alert notification emails. For this specific process, we would prefer not to be notified.

Edit LFD Process Tracking Ignored Commands

In this guide, we will be modifying the /etc/csf/csf.pignore file. This file contains the list of executables (exe) and commands (cmd) that will be ignored by LFD process tracking.

Follow the steps below to setup suppression of CSF and LFD warnings for a specific process:

  1. First, login to the server as root user.
  2. Make a copy of the /etc/csf/csf.pignore file:
    cp /etc/csf/csf.pignore /etc/csf/csf.pignore.bak
  3. Next, edit the original file with your preferred text editor:
    nano /etc/csf/csf.pignore
  4. Once complete, exit and write changes to the /etc/csf/csf.pignore file.
  5. Restart CSF and LFD services to process the changes:
    csf -r

The CSF and LFD services will now restart using the updated /etc/csf/csf.pignore data.

Further Reading:

 

  • csf, lfd, notifications, configserver, firewall, configure error, waf
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...