Network based systems

How To Add A Powerful Web Based System And Network Load Monitor To Ubuntu Server

Jack Wallen shows you how easy it is to install an extended load monitor on Ubuntu Server to find bottlenecks and other issues.

Image: sharafmaksumov/Adobe Stock

Every Linux system administrator knows how important it is to be able to track the performance of a server. Whether it’s load average, kernel usage, file system usage, or network I/O, you need tools to keep tabs on that information. Of course, since this is Linux, there are plenty of options, one of which is called Monitorix. This open source tool is able to monitor the following:

  • Average system load
  • Active processes
  • Core usage per CPU
  • Overall kernel usage
  • Memory allocation
  • Hard drive temperatures and health
  • File system usage and I/O activity
  • Network traffic usage (up to 10 network devices)
  • System Services (such as SSH, FTP, Vsftpd, ProFTP, SMTP, POP3, IMAP, and POP3)
  • MTA Mail Statistics
  • Network Port Traffic
  • FTP statistics
  • Apache Statistics
  • MySQL Statistics
  • Squid proxy web cache statistics
  • Fail2ban Statistics

Monitorix is ​​also capable of monitoring remote servers, displaying statistics in the form of graphs or tables in plain text for the day, week, month or year. And with a built-in HTTP server, you can install Monitorix on a server without a GUI and view statistics from any web browser on your network.

Let’s install Monitorix on Ubuntu Server 22.04 and see what it is.

SEE: 40+ open source and Linux terms you need to know (TechRepublic Premium)

What you will need

The only things you will need to install Monitorix are a running instance of Ubuntu Server (version 20.04 and later) and a user with sudo privileges. With those ready, let’s move on to installation.

How to install Monitorix

Monitorix is ​​in the repositories by default, so installing it on Ubuntu Server is as easy as logging into your server and issuing the command:

sudo apt-get install monitorix -y

If you find that you are using an older distribution and Monitorix is ​​not in the default repositories, create a new repository file with:

sudo nano /etc/apt/sources.list.d/monitorix.list

In this file, paste the following:

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

Save and close the file.

Download the GPG key with:

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

Add the key with:

apt-key add izzysoft.asc

Update apt with:

sudo apt-get update

Finally, install Monitorix with:

sudo apt-get install monitorix -y

Either way, you should have Monitorix installed and running.

How to Access the Monitorix Web UI

Open a web browser and point it to http://SERVER:8080/monitorix, where SERVER is the IP address of the hosting server. You should see the Select Host, Graph, and Time page (Figure A).

Figure A

This is where you select the server you want to monitor and the services to view.

Select Localhost, All Charts and Daily. Once you have made these selections, click OK and you will be taken to the graphics page. It may take a while for the Monitorix charts to start showing results, but you should start seeing new information each time the page automatically refreshes (Figure B).

Figure B

Monitorix is ​​up and running and showing data for my Ubuntu Server instance.

There you have it, a powerful system monitor that shouldn’t take you more than five minutes to get up and running and will keep you up to date with more information about your server than you probably need.

Subscribe to TechRepublic How to make technology work on YouTube for all the latest tech tips for professionals from Jack Wallen.


Source link