Go to: https://yourserverip:2087
Enter your root username and password.

From the WHM main menu, navigate to:
Home → Service Configuration → Service Manager

cpsrvd (cPanel service)
httpd (Apache Web Server)
exim (Mail Server)
named (DNS Server)
sshd (SSH Service)
mysql (MySQL Server)
For each service you want to monitor:
Check “Monitor” — to have WHM’s Service Manager watch the service status.
Check “Enable” — to allow automatic restarts when the service fails.

Scroll down and click Save to apply the changes.
WHM will now automatically restart monitored services if they stop unexpectedly.