How to install Monit 5.25.1 on Ubuntu 18.04
To install Monit 5.25.1 on Ubuntu 18.04
Monit is an open source proactive monitoring tool for Linux operating system and it is used for monitoring system process using the web browser. Apart from that, it is also capable of performing automatic maintenance or repair of a particular process (i.e., restarting the service) whenever needed. 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.
Installation
Install a Monit tool using the following command
root@linuxhelp1:~# apt-get install monit -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap
Use ' sudo apt autoremove' to remove them.
.
.
(Reading database ... 167405 files and directories currently installed.)
Preparing to unpack .../monit_1%3a5.25.1-1build1_amd64.deb ...
Unpacking monit (1:5.25.1-1build1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up monit (1:5.25.1-1build1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Processing triggers for man-db (2.8.3-2) ...
Processing triggers for ureadahead (0.100.0-20) ...
Make some changes in a Monit configuration file
root@linuxhelp1:~# vim /etc/monit/monitrc
[..]
Set httpd port 2812 and
use address 192.168.7.236 (choose your IP address)
allow www.linuxhelp1.com (choose your localhost)
allow admin:monit (username: password)
[..]
Start the monit service
root@linuxhelp1:~# systemctl start monit
Enable the monit service
root@linuxhelp1:~# systemctl enable monit
monit.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable monit
Open a browser and type the following URL of “ http://local IP (or) domain name:2812”
Login page of monit will appear. log in with help of the following credential “ admin:monit”
After the login, you can monitor the system status as shown below
You can also view the runtime status of Monit as shown here.
with this, the method to install Monit 5.25.1 on Ubuntu 18.04 comes to an end.