How to disable services from cPanel monitoring?

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

WebHost

Steps to enable/disable a service from cPanel monitoring

  1. Log into WHM as root.
  2. Then go to “Home » Service Configuration » Service Manager
  3. Uncheck the service from the “Monitor” column.
  4. 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:

  1. SSH to server as root.
  2. Open the Chkservd configuration file “/etc/chkserv.d/chkservd.conf” with your favorite file editor.
  3. You can disable and enable services by using 0 and 1.

Chkservd

       4. Restart “Chkservd” service.

The script pasted below will restart the Chkservd service.

/scripts/restartsrv_chkservd

That’s it!

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

4 thoughts on “How to disable services from cPanel monitoring?

  1. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *