Monit is a very rich process, file, directory and equipment monitoring software for the UNIX platform. It automatically fixes programs that have ceased to work, and the envoy is suitable for software bugs that can be caused by a variety of reasons.
When you are cannot monitor your server for service availability, it are better to take help automated monitor and restart U Tility. Last 4 days I am away from my server as I is enjoying my vacation. During this time due to load my lighttpd webserver died but it is restarted automatically within 2 minutes. I had utility configured for monitoring services on a Linux system called Monit. It offers all features your ever needed for system monitoring and perform error recovery for UNIX-like system.
Before Monit I had my own shell and Perl script for monitoring service. If service failed script'll try to restart service and send a automated email to me. However Monit is a superior solution.
Monit is a utility to managing and monitoring processes, files, directories and devices on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. For example, Monit can start a process if it does not run, restart a process if it does not respond and stop a process if It uses to a much more resources. Use Monit to monitor files, directories and devices for changes, such as timestamps changes, checksum changes or S ize changes.
You could also use Monit to monitor files, directories and devices on localhost. Monit can monitor these items for changes, such as timestamps changes, checksum changes or size changes. This is also useful for security reasons you can monitor the MD5 checksum of files.