Menu

Monit is a simple and lightweight, and really useful tool. I discovered this program some time ago, with the question: "How to monitor a process, and keep it alive always, in the best possible way?".

The answer was Monit. It is a ~500Kb program for UNIX/Linux, which checks up on defined services and processes every 2 minute.

I had setup an ElasticSearch/Logstash/Kibana central server for at customer, with Redis as a buffer, receiving data from the Logstash-agents. The Redis server had a few accidents, with too much memory load, where it unfortunately went down.

I opened the monit-configuration file (monit.conf), and added the following ($ vi /etc/monit.conf), which will create checks for both Redis, MySQL and NGINX: