How To Install Monitorix on Ubuntu 16.04

Install Monitorix on Ubuntu 16.04

In this tutorial, we will show you how to install and configuration of Monitorix on your Ubuntu 16.04 server. For those of you who didn’t know, For those of you who didn’t know, Monitorix is a free, open-source, lightweight system monitoring tool designed to monitor server, service, and devices. Monitorix allows to monitor overall system performance and also helps in detecting bottlenecks, failures, unwanted long response times, and other abnormal activities.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of the Monitorix Network Monitoring Tool on a Ubuntu 16.04 (Xenial Xerus) server.

Monitorix features

  • Global kernel usage
  • An unlimited number of network ports supported.
  • An unlimited number of Apache servers supported.
  • Ability to define the number of graphs per row.
  • Ability to enable traffic monthly reports.
  • Ability to zoom in on any graph.
  • Ability to show network metrics in MBytes/sec or Mbits/sec.
  • Monitors Disk drive temperatures and health.
  • Filesystem usage and I/O activity of filesystems.
  • Network traffic usage up to 10 network devices.
  • Netstat statistics.
  • System services demand (SSH, ProFTPD, Samba, CUPS, Fail2ban, IMAP, POP3, SMTP, etc…)
  • Squid Proxy Web Cache statistics.
  • Built-in HTTP server.
  • MTA Mail statistics including input and output connections
  • Network port traffic including TCP, UDP, etc.

Install Monitorix on Ubuntu 16.04

Step 1. First add the Monitorix Repository, open /etc/apt/sources.list file as shown below.

nano /etc/apt/sources.list

Place the cursor to the end of the file and add this line and save the file and exit from the file.

deb http://apt.izzysoft.de/ubuntu generic universe

Once the repository is added, we have to download (or add) the PGP key and “install” it into the system as shown below:

wget http://apt.izzysoft.de/izzysoft.asc

Go to the directory where the .asc file is saved and run the following command:

sudo apt-key add izzysoft.asc

Now, make sure that all your system packages are up-to-date by running the following apt-get commands in the terminal:

apt-get update

Step 2. Installing Monitorix.

After updating the repository, run the following command to install Monitorix:

apt-get -y install monitorix apache2-utils

Step 3. Configure Monitorix.

To configure Monitorix, open /etc/monitorix/monitorix.conf file as shown below:

nano /etc/monitorix/monitorix.conf

Search for the following lines:

<auth>
 enabled = n
 msg = Monitorix: Restricted access
 htpasswd = /var/lib/monitorix/htpasswd
 </auth>

And enable authentication by changing it to “y”.

<auth>
 enabled = y
 msg = Monitorix: Restricted access
 htpasswd = /var/lib/monitorix/htpasswd
 </auth>

Save the file and exit. Once configured, we have to restart the Monitorix service:

systemctl start monitorix

Create the password for Monitorix:

htpasswd -d -c /var/lib/monitorix/htpasswd admin

Step 4. Accessing MediaWiki.

Monitorix will be available on HTTP port 8080 by default. Open your favorite browser and navigate to http://your-domain.com:8080/monitorix/ or http://server-ip:8080/monitorix/. If you are using a firewall, please open port 80 to enable access to the control panel.

Install Monitorix on Ubuntu 16.04

Congratulations! You have successfully installed Monitorix. Thanks for using this tutorial for installing Monitorix Network Monitoring Tool in Ubuntu 16.04 LTS (Xenial Xerus) systems. For additional help or useful information, we recommend you to check the official Monitorix website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!