ChkServd TCP check failure threshold
Main >> Server Configuration >> Tweak Settings
The number of times a ChkServd TCP check must fail before notification is sent and the service is restarted. On heavily loaded systems these types of service checks fail occasionally, producing erroneous indications that services are down.
A value of 3 or higher is recommended for most systems.
How to include the crond service to chkservd
First we need to create a crond file under the chkservd.d directory where all the services files are placed:
Add the following line to the file:
service[crond]=x,x,x,/etc/init.d/crond restart,crond,root
Now we need to edit the chkservd configuration file and enable the crond service for monitoring
vi /etc/chkserv.d/chkservd.conf
add the following line at the end of the file
Restart the chkservd service for the new changes to take affect:
/scripts/restartsrv chkservd
Stop the service manually and watch chkservd logs to verify auto-restart.
service crond stop; tail -f /var/log/chkservd.log
You should notice that the crond service is restarted automatically.
chkservd service monitor
chkservd is a service running on Cpanel servers. chkservd service monitors other service, if any of the service that is monitored by chkservd is found down, chkservd will restart the service and notify server admin
You can start, stop chkservd with following commands
service chkservd start
service chkservd stop
/etc/rc.d/init.d/chkservd start
/etc/rc.d/init.d/chkservd stop
cPanel offers ‘chkservd’, a monitoring daemon that monitors the services on the server and restart them if found offline.