Why Am I Getting Multiple Root Login Alerts (Slack or Email)?

IP Is Whitelisted but You Are Still Receiving Alerts?

If alerts continue even after the IP address has been whitelisted, please remove the IP from the whitelist manually and clear any pending tasks using the commands below:

cpfence --del-whitelist-ip  Your-IP 
atq | awk '{print $1}' | xargs atrm
cpfence --add-whitelist-ip Your-IP
This ensures that the IP address is correctly added to the allowlist permanently. Once completed, monitor the system to verify that the alerts have stopped.

If you notice duplicate root login alerts from cPFence — sometimes 7–8 Slack or email notifications for what looks like the same login — this usually happens when multiple sessions are opened at once. This can be triggered by the cPFence WebUI or by certain SSH clients that establish parallel connections.

Step 1: Whitelist Your Server IPs

To prevent unnecessary root login alerts from your own servers, whitelist your cluster IPs. This ensures that internal system logins do not generate repeated notifications.

How to Whitelist Your Enhance Cluster’s IPs in cPFence

Step 2: Check Your SSH Client Settings

Some SSH clients create multiple sessions in the background (for example, when multiplexing connections). Each of these sessions triggers its own root login alert in Slack or email. Reviewing and adjusting your SSH client settings can help reduce duplicate alerts.

Step 3: Review Recent Logins

To confirm how many root login sessions are actually being created, review your SSH logs:

journalctl -u ssh --since=-15min --no-pager

This will show all root login events within the last 15 minutes, including multiple parallel sessions if they exist.

Step 4: How cPFence Sends Alerts

cPFence sends one alert per new session. If several sessions are created, you will see multiple root login alerts, whether by Slack or email. This is expected behavior and ensures that every access attempt is logged and reported.

 


Need Further Assistance?

If you continue to receive duplicate root login alerts and need help tuning Slack or email notifications, please reach out to our support team via your client portal.

 

  • slack, root login alerts
  • 2 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

Why Do I See "could not change directory to /root: Permission denied" Warnings?

You may occasionally encounter the following warning message while using cPFence: could not...

How to Uninstall cPFence ?

If you need to remove cPFence from your system, follow the steps below to uninstall the software...

How to Set Up Slack Notifications in cPFence?

If you'd like to receive cPFence alerts on your desktop or mobile via Slack, follow the steps...

How to Temporarily Disable All cPFence Functions?

If you need to pause cPFence activity for troubleshooting or other purposes, you can temporarily...

How to Address High Server Load Issues with cPFence?

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

Powered by WHMCompleteSolution