How to install and use Glances to monitor Ubuntu 22.04 system

Glances is a Python-based, open-source, cross-platform system monitor running on top of Curses. It is a real-time monitoring tool to check system components including CPU, memory, network interface load, disk I/O, etc. Glances also supports cross-platform monitoring and is accessible through a web-based interface. This guide explains how to install and use Glances to monitor in Ubuntu.

How to install and use Glances to monitor Ubuntu 22.04 system

First, update and upgrade your Ubuntu system with the following commands:

sudo appropriate update
sudo appropriate upgrade -y

Normally, Ubuntu 22.04 includes the Glances as a default package. This means you can install it with the following command:

sudo suitable To install looks -y

Now run the following command to enable and start the Glances:

sudo systemctl make possible looks
sudo systemctl starts peeks

You can also check the status of currently running Glances with the following command:

sudo Systemctl status looks

As shown in the previous image, the system displays “Active” for Glances. If you want to check the version of Glances, run the following command:

looks –Execution

If the previous commands don’t enable the looks, you can run the following command to enable them immediately:

sudo systemctl make possible looks –Now

You can run the following command to start the Glances from the terminal:

looks

Next, you can open the Glances via the timer, which can help the systems with demanding jobs. The timer is set to 1 by default, but you can change it. For example:

looks -T 4

Instead of the default 1 second time delay, it is now 4 seconds.

Warnings in looks

Glances are the color for warnings. Here is a list of the colors with their details:

ColorsDescription
GreenOK Good)
BlueAttention)
Violet WARNING (Alert)
RedHARD (Critical)

The default settings thresholds are as follows:

warningdetails
Cautious50
warning70
Critical90

You can change the default by editing the following:

nano /etc/looks/glances.conf

Now add or edit the following lines in the files:

When you’re done, save and close the file. If you want to learn more about Glances, run the following command:

looks -H

How to run the Glances in a web browser

Glance also supports the web interface, from which you can run the following command:

looks -w

When you enter this command, the terminal displays “Glances Web User Interface started on https://0.0.0.0:61208”. Using the server’s IP address can confuse this.

You can use the following command to run Glances in the background for your primary client:

looks -w &

To end all active gaze sessions to kill processors in background mode, type:

sudo kill all looks

Diploma

The Glances is one of the most widely used alternatives for simple server monitoring due to the added benefit of remote monitoring. With continuous, active development, it just keeps getting better. Here’s how you can easily install and use Glances in Ubuntu to monitor everything without any hassle.

Related Posts