Jul 15
Configure Monit
wzuup monitMonit is configured by ~/.monitrc
which needs to be created after installation.
$ vim .monitrc
Create a minimal control file.
# check every 60sec
set daemon 60
# configure the notification on alert
set mailserver localhost
set mail-format { from: [email protected] }
set alert [email protected]
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
Run syntax check for the control file.
$ monit -t
monit: The control file '/root/.monitrc' must have permissions no more than -rwx------ (0700); right now permissions are -rw-r--r-- (0644).
Change the permissions and recheck
$ chmod 0700 .monitrc
$ monit -t
Control file syntax OK
✱ ✱ ✱