BuycPanel Blog

BuycPanel Blog

Latest news and updates

Fix Common Disk Problems using TailWatch

Posted by Allura on 23 08 2018.

Introduction

TailWatch driver monitors the log file for activities and then depending on the activity, it takes action. The chkservd driver determines if a certain process is online and whether to restart the process based on connection-based monitoring and process-based monitoring.

However, there is a common chkservd issue which takes place when one does not monitor or did not disable a service but it still continues to appear as offline in WHM’s Service Manager Interface.

To fix the problems, one needs to perform the following steps:

Steps to Fix the Problems

  • Run the following command to remove the run file:

   rm-f/var/run/chkservd/service

  • Run the following command to remove the chkservd configuration file:

rm-f/etc/chkserv.d/service

  • Remove the service’s line in one’s preferred text editor from the /etc/chkserv.d/chkservd.conf configuration file.
  • Run the following command to restart the chkservd driver:

/scripts/restartsrv_chkservd

  • One needs to navigate to WHM’s Service Manager Interface (WHM >> Home >> Service Configuration >> Service Manager).
  • Lastly, click Save at the bottom of the interface excluding any sort of additional charges.

Other Drivers (antirelayd, eximstats, jailmanager, cpbandwd, and modseclog)

The other TailWatch drivers excepting the chkservd driver do not maintain their own log files or configuration.

Process Control And Status

One needs to pass command line flags to the /usr/local/cpanel/libexec/tailwatchd file to control the TailWatch process.

One needs to run the command to avail the full list of flags:

/usr/local/cpanel/libexec/tailwatchd –help

Custom Functionality

Adding a new driver is needed to add custom functionality to TailWatch Full documentation, and examples for customizations are contained in the PerlDoc for TailWatch module.

One needs to run the command to access the documentation:

/usr/local/cpanel/libexec/tailwatchd – perldoc

One can place new drivers in the /usr/local/cpanel/Cpanel/TailWatch directory and then can restart it to load the new drivers.

Conclusion

TailWatch is a technical driver which is used to troubleshoot many technical problems. The problems encountered can be fixed with the above steps. One can again continue to use it in WHM and cPanel servers.