How to detect and restart Apache and LIGHTTPD

Source: Internet
Author: User
Tags perl script

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.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.