Yeah, it’s really frustrating with ton of emails into my Inbox for cPanel monitoring. How can I disable this for an unused service on my server?
By-default, cPanel monitors all services installed on the server by using the “Chkservd” daemon. Chkservd monitors all services installed on the server and restarts or try to restart them automatically if any services are stopped for some reason. You can manage this simply from the WHM panel or from the server CLI. Here I’m explaining the steps to enable/disable services from the cPanel monitoring.
Email for service down alert from cPanel Chkservd.
clamd failed @ Sat Apr 24 12:14:11 2016. A restart was attempted automatically.
Service Check Method: [check command]
Cmd Service Check Raw Output: clamd is not installed
The monitoring process in cPanel is responsible by “Service Manager” section in WHM.
Location :: “Home » Service Configuration » Service Manager“
Steps to enable/disable a service from cPanel monitoring
- Log into WHM as root.
- Then go to “Home » Service Configuration » Service Manager“
- Uncheck the service from the “Monitor” column.
- Then “Save.”
How to disable a service from Chkservd via CLI (Command Line Interface)?
Yeah, you must know about how to do this via the shell too. Here I’m explaining the command-line tricks to do so:
- SSH to server as root.
- Open the Chkservd configuration file “/etc/chkserv.d/chkservd.conf” with your favorite file editor.
- You can disable and enable services by using 0 and 1.
4. Restart “Chkservd” service.
The script pasted below will restart the Chkservd service.
/scripts/restartsrv_chkservd
That’s it!
Thank you very much! I received a hundreds of emails as false positive daily. Also I can’t able to login to WHM due to license expired, So that I used the SSH instead and solved!
Thanks Mohamed
Thank you!
🙂 Ismine bayildim