Monitoring Linux with Glances
Most Linux administrators use the top command to check system health and resource usage, but its output isn’t the easiest to read. Glances, built to monitor the health of Linux systems under the slogan “An Eye on your system”, gives you a far clearer picture and is an excellent replacement for top. It’s written in Python and runs on almost any platform: GNU/Linux, FreeBSD, macOS and even Windows. Glances is a command-line tool for monitoring Linux servers, and it uses the psutil library to collect information from the system.
What Glances monitors
- CPU
- RAM
- System load
- Running processes
- Network interfaces
- Disk I/O
- IRQ / RAID
- Sensors
- File systems (and folders)
- Docker
- System information
- Uptime
- A quick summary of CPU, memory and load
With this many monitoring features, we definitely recommend installing Glances as a replacement for top.
Installing Glances
On CentOS and RHEL, first install the EPEL repository, update the system and install a few prerequisites, then install Glances.
CentOS / RHEL 6 and 7
yum install epel-release
yum update -y
yum install libpcap libpcap-devel ncurses ncurses-devel
yum install glances
CentOS / RHEL 8 and Fedora 22
dnf install glances
Ubuntu / Debian
sudo apt-get update
sudo apt-get install glances
How to use Glances
Open a terminal and run:
glances

By default the display refreshes every second. To change the interval, use the -t option (here, every 5 seconds):
glances -t 5
We hope you find it useful. (Buy a VPS)

