Monit is a free and open source monitoring system for Linux. It’s one of the essential tools a sysadmin must have. Use the following examples to create your own checks and your own conditions that will suit your need.
So, let’s begin.
With Monit, you can check a certain filesystem. As we are using include /etc/monit.d/* (it’s just another way of configuring Monit, you can put all of this in /etc/monit.conf too), we need to first create the appropriate file for the check we are about to configure. You can also name the file to your liking, it does not have to be the same as the example.