![]() ![]() Specify an email address on which you want to be alerted in case of any failures/events. Set the mail server information for relaying the alerts generated by Monit. If you want to change the time intervals between service check, edit the below value. “ /etc/monit/monitrc” is the main configuration file of Monit and additional configuration files for process/service are usually placed in “ /etc/monit/conf-available” and “ /etc/monit/conf-enabled”Įdit the main configuration file to configure important parameters of Monit’s to meet our requirements. To enable Monit service at boot time, run: $ sudo systemctl enable monit Configure Monit: Jun 27 22:36:53 server systemd: Started LSB: service and resource monitoring daemon. Jun 27 22:36:53 server monit: Starting daemon monitor: monit. Jun 27 22:36:53 server systemd: Starting LSB: service and resource monitoring daemon. └─1094 /usr/bin/monit -c /etc/monit/monitrc Loaded: loaded (/etc/init.d/monit generated vendor preset: enabled)Īctive: active (running) since Tue 22:36:53 EDT 9min ago rvice - LSB: service and resource monitoring daemon.To check the status of Monit, run: $ sudo systemctl status monit To restart Monit, run: $ sudo systemctl restart monit To stop Monit, run: $ sudo systemctl stop monit To start Monit service, run: $ sudo systemctl start monit Processing triggers for man-db (2.7.6.1-2). Processing triggers for systemd (232-25). 124586 files and directories currently installed.) Selecting previously unselected package monit. The following NEW packages will be installed:Ġ upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 915 kB of additional disk space will be used. Monit is available on Debian and Ubuntu repositories, so you can simply use “ apt-get” to install it. This guide should also work on previous versions of Debian and Ubuntu such as Debian 8, Ubuntu 14.04, and also on current version of Ubuntu i.e., Ubuntu 17.04 Install Monit: It logs to its log file and notifies the user via customizable messages, this guide will help you to set up Monit on Debian 9 / Ubuntu 16.04. Monit can also be used for proactively managing and monitoring of programs, files, directories, and devices for permission changes, timestamps changes, size changes, and checksum changes not limited to perform various protocol checks, TCP/IP network checks, and can utilize SSL for such checks. Monit is an open source proactive monitoring tool for Linux operating system which helps you to monitor system process using the web browser and also whenever requires it automatically do the maintenance or repair of a particular process (i.e., restarting the service) in such a way that it can be brought back online. ![]()
0 Comments
Leave a Reply. |