AMP AMP

How to install Monit 5.16 on Linux Mint 18.3

To install Monit 5.16 on Linux Mint 18.3

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. It is so simple to install Monit 5.16 on Linux Mint 18.3, and this tutorial covers the ground on the same process.

Installing Monit 5.16

Before you begin the installation process, make sure you update the system repository by making use of the following command.

linuxhelp user # apt-get update
Ign:1 http://packages.linuxmint.com sylvia InRelease                                                              
Get:2 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]                                              
Get:3 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,128 B]                                 
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                        
Get:5 http://packages.linuxmint.com sylvia Release [24.2 kB]                                                      
Get:6 http://archive.canonical.com/ubuntu xenial/partner i386 Packages [3,120 B]                     
Get:7 http://packages.linuxmint.com sylvia Release.gpg [819 B]      
Hit:8 http://archive.ubuntu.com/ubuntu xenial InRelease
.
.
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [570 kB]                            
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [248 kB]                           
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]                        
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]                         
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,076 B]                        
Get:32 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,104 B]                        
Get:33 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [7,080 B]                         
Get:34 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,844 B]                        
Fetched 5,559 kB in 25s (222 kB/s)                                                                                
Reading package lists... Done

Once it is done, you shall proceed with the installation of Monit with the help of following command.

linuxhelp user # apt-get install monit 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  exim4 | postfix | mail-transport-agent sysvinit-core
The following NEW packages will be installed:
  monit
0 upgraded, 1 newly installed, 0 to remove and 287 not upgraded.
Need to get 273 kB of archives.
After this operation, 826 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 monit amd64 1:5.16-2 [273 kB]
Fetched 273 kB in 1s (187 kB/s)
Selecting previously unselected package monit.
(Reading database ... 219622 files and directories currently installed.)
Preparing to unpack .../monit_1%3a5.16-2_amd64.deb ...
Unpacking monit (1:5.16-2) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up monit (1:5.16-2) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...


Once it is done, you shall open the configuration file of Monit

linuxhelp user # vim /etc/monit/monitrc


And make the following changes in it.

 [..]
set httpd port 2812 and
use address 192.168.7.235   (choose your IP address)
allow www.linuxhelp1.com       ( choose your localhost)
allow admin:monit  (username : password)
[..]

You shall start the monit service now.

linuxhelp user # systemctl start monit

Once it is done, you shall enable the monit service by making use of the following command.

linuxhelp user # systemctl enable monit
monit.service is not a native service, redirecting to system-sysv-install
Executing /lib/system/system-sysv-install enable monit


To check whether the Monit service is listening correctly on all interfaces or not run the following command.

linuxhelp user # netstat -antup|grep -i monit
tcp        0      0 192.168.7.235:2812          0.0.0.0:*               LISTEN      14805/monit    

Now that Monit has been installed, you shall open a browser and type http://IP (or) domain name:2812 in the URL field and go.

When the login page appears, give your username as admin and password as Monit.

You can check the version of Monit.

You can check the detailed runtime status.

With this, the method to install Monit comes to an end.


Comment
parthiban
Jun 02 2018
No it is not an agent based application
n
May 20 2018
it's a agent-server based application? need to install agent for monitoring?
Add a comment
FAQ
Q
Can i monitor monnit from terminal?
A
no, Monit is a web based monitoring.
Q
What is the refresh time in monit?
A
You will get the refresh interval of 2s in monit.
Q
which are the platforms monit support?
A
it will support for linux, BSD, OS X and Solaris.
Q
Whether Monit is free?
A
Yes, Monit is open source and free to use.
Q
Which is the place to see exactly the zones available in the current machine?
A
"/etc/shorewall6/zones" is the file location consist of existing zones.