AMP AMP

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.

Tag : Monit Ubuntu
FAQ
Q
How to access the Github repository for the Monit?
A
For accessing the Github repository of the Monit, use the following link as given below "https://mmonit.com/monit/dist/monit-5.25.2.tar.gz"
Q
How to get the source of the Monit tool?
A
Get the source of the Monit tool, use the following link as given below "https://mmonit.com/monit/dist/monit-5.25.2.tar.gz"
Q
How to remove the Monit tool on Ubuntu?
A
For uninstalling the Monit tool on Ubuntu, use the following command as given below "# apt-get remove monit -y"
Q
How to get the Binary for the Monit on Linux?
A
Get the Binary for the Monit, use the following link as given below "https://mmonit.com/monit/#"
Q
What about monitoring for specific products, such as Microsoft® Exchange, SQL, Server IIS, etc.?
A
Monitis offers Application monitors for Apache Tomcat, MySQL, Oracle, or logs of any application running on your machine. For more details on configuring Monitis Application monitors see the