How to Install Monitorix on Ubuntu 21.04

To Install Monitorix On Ubuntu 21.04

Introduction:

Monitorix is a free, open-source, lightweight system monitoring system designed to monitor as many services and system resources as possible. It has been created for use with production Linux and UNIX servers but is also suitable for embedded devices due to its simplicity.

Installation Procedure:

Step 1: Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Step 2: Update the APT repository Source List by using the below command

root@linuxhelp:~# apt update 
Hit:1 http://in.archive.ubuntu.com/ubuntu hirsute InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]              
Hit:3 https://download.docker.com/linux/ubuntu bionic InRelease                                                            
Hit:4 http://in.archive.ubuntu.com/ubuntu hirsute-backports InRelease                                                      
Hit:5 http://security.ubuntu.com/ubuntu hirsute-security InRelease
Fetched 115 kB in 1s (98.2 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

Step 3: Install the Monitorix Package by using the below command

root@linuxhelp:~# apt install monitorix -y 
Reading package lists... Done

Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm11
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libconfig-general-perl libdbi-perl libdbi1 libemail-date-format-perl libfcgi-bin libfcgi-perl
  libfcgi0ldbl libhttp-server-simple-perl libmime-lite-perl libmime-types-perl librrd8 librrds-perl libxml-libxml-perl
  libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl rrdtool
Suggested packages:
  libmldbm-perl libnet-daemon-perl libsql-statement-perl default-mta | mail-transport-agent libmojolicious-perl
  libxml-sax-expatxs-perl
The following NEW packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libconfig-general-perl libdbi-perl libdbi1 libemail-date-format-perl libfcgi-bin libfcgi-perl
  libfcgi0ldbl libhttp-server-simple-perl libmime-lite-perl libmime-types-perl librrd8 librrds-perl libxml-libxml-perl
  libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl monitorix rrdtool
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,434 kB of archives.
After this operation, 8,946 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 libdbi1 amd64 0.9.0-6 [24.4 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 librrd8 amd64 1.7.2-3build5 [160 kB]

Get:3 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 rrdtool amd64 1.7.2-3build5 [377 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 libemail-date-format-perl all 1.005-1.1 [6,088 B]
Get:5 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 libmime-lite-perl all 3.031-1 [62.9 kB]


Get:6 http://in.archive.ubuntu.com/ubuntu hirsute/universe amd64 librrds-perl amd64 1.7.2-3build5 [23.0 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 libdbi-perl amd64 1.643-3build1 [730 kB]
Unpacking libmime-types-perl (2.18-1) ...
Setting up libconfig-general-perl (2.63-1) ...
Setting up libdbi1:amd64 (0.9.0-6) ...
Setting up libfcgi0ldbl:amd64 (2.4.2-2) ...
Setting up libmime-types-perl (2.18-1) ...
Setting up libcgi-pm-perl (4.51-1) ...
Setting up libfcgi-bin (2.4.2-2) ...
Setting up libxml-namespacesupport-perl (1.12-1.1) ...

Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Setting up libxml-libxml-perl (2.0134+dfsg-2build1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50...
update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Setting up libxml-sax-expat-perl (0.51-1) ...
update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::Expat with priority 50...
update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...
Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version
Setting up rrdtool (1.7.2-3build5) ...
Setting up libxml-simple-perl (2.25-1) ...
Setting up monitorix (3.12.0-2) ...

Created symlink /etc/systemd/system/multi-user.target.wants/monitorix.service → /lib/systemd/system/monitorix.service.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.33-0ubuntu5) ...

Step 4: Restart the Monitorix Sevice by using the below command

root@linuxhelp:~# systemctl restart monitorix

Step 5: Check the status of the Monitorix Sevice by using the below command

root@linuxhelp:~# systemctl status monitorix
● monitorix.service - Monitorix
     Loaded: loaded (/lib/systemd/system/monitorix.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-03-17 06:15:46 IST; 16s ago
       Docs: man:monitorix(8)
    Process: 13141 ExecStart=/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitorix.pid $OPTIONS (code=exited, status>
   Main PID: 13142 (/usr/bin/monito)
      Tasks: 2 (limit: 2254)
     Memory: 30.2M
     CGroup: /system.slice/monitorix.service
             ├─13142 /usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitorix.pid
             └─13194 monitorix-httpd listening on 8080

Mar 17 06:15:46 linuxhelp systemd[1]: Starting Monitorix...
Mar 17 06:15:46 linuxhelp systemd[1]: Started Monitorix.

Step 6: Ping the Following address as shown in the below image

Ping http://localhost:8080/monitorix

Step 7: This is the Dashboard of the Monitorix

By this how to install Monitorix on Ubuntu 21.04 has been completed.

FAQ
Q
Is there an IRC channel for Monitorix?
A
Yes, there is a channel at Libera.Chat called #monitorix to discuss help, bugs, and enhancements. For further, see the Contacts page.
Q
Is there a mailing list for Monitorix?
A
Yes. There is a mailing list for general discussion. See the Contacts page for the details.
Q
Who is the author of Monitorix?
A
Jordi Sanfeliu is the author of Monitorix.
Q
Can I use it for commercial purposes?
A
Yes, Monitorix is an open-source project and it is released under the GNU License. You don't have to tell me about your products, but if you have a success story about how Monitorix has helped you, I'd love to hear about it.
Q
Where can I get Monitorix?
A
It can be freely obtained from its official website, but you should verify first if your system already provides a ready-to-install package of Monitorix.