How to install Glances Linux server monitoring tool on CentOS
Installing Glances Linux
Glances is a great tool for monitoring a server. Its full name is “Glances – an eye on your system”
It gives detailed information about CPU, MEM, DISK, and server performance.
Click here for Glances GitHub site – https://github.com/nicolargo/glances
Here is a quick guide to installing Glances in CentOS 7
- First, install wget if you do not already have it
yum install wget -y
- Add the fedora repo to CentOS – this is not a default repository so you have to manually add it
wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
- Install the package with RPM
rpm -ivh epel-release-7-11.noarch.rpm
Install glances
yum install glances -y

- Run Glances
glances


Requirements
python 2.7,>=3.4
psutil>=5.3.0
(better with latest version)
Optional dependencies:
bernhard
(for the Riemann export module)bottle
(for Web server mode)cassandra-driver
(for the Cassandra export module)couchdb
(for the CouchDB export module)docker
(for the Docker monitoring support) [Linux-only]elasticsearch
(for the Elastic Search export module)hddtemp
(for HDD temperature monitoring support) [Linux-only]influxdb
(for the InfluxDB export module)kafka-python
(for the Kafka export module)netifaces
(for the IP plugin)nvidia-ml-py3
(for the GPU plugin)pika
(for the RabbitMQ/ActiveMQ export module)potsdb
(for the OpenTSDB export module)prometheus_client
(for the Prometheus export module)py-cpuinfo
(for the Quicklook CPU info module)pygal
(for the graph export module)pymdstat
(for RAID support) [Linux-only]pySMART.smartx
(for HDD Smart support) [Linux-only]pysnmp
(for SNMP support)pystache
(for the action script feature)pyzmq
(for the ZeroMQ export module)requests
(for the Ports, Cloud plugins and RESTful export module)scandir
(for the Folders plugin) [Only for Python < 3.5]statsd
(for the StatsD export module)wifi
(for the wifi plugin) [Linux-only]zeroconf
(for the autodiscover mode)
Here is the interactive command list
Sort process list automatically
- If CPU
>70%
, sort processes by CPU usage - If MEM
>70%
, sort processes by MEM usage - If CPU iowait
>60%
, sort processes by I/O read and write
A
– Enable/disable Application Monitoring Process
b
– Switch between bit/s or Byte/s for network I/OB
B – View disk I/O counters per second
c
– Sort processes by CPU usage
d -
Show/hide disk I/O stats
D -
Enable/disable Docker stats
e
– Enable/disable top extended stats
E
-Erase current process filter
f
-Show/hide file system and folder monitoring stats
F
– Switch between file system used and free space
g
– Generate graphs for current history
h
– Show/hide the help screen
i
– Sort processes by I/O rate
I
– Show/hide IP module
l
– Show/hide log messages
m
– Sort processes by MEM usage
M
– Reset processes summary min/max
n
– Show/hide network stats
N
– Show/hide current time
p
– Sort processes by name
q|ESC|CTRL-C
– Quit the current Glances session
Q
– Show/hide IRQ module
r
– Reset history
R
– Show/hide RAID plugin
s
– Show/hide sensors stats
t
– Sort process by CPU times (TIME+)
T
– View network I/O as combination
u
– Sort processes by USER
U
– View cumulative network I/O
w
– Delete finished warning log messages#
W
– Show/hide Wifi module
x
– Delete finished warning and critical log messages
z
– Show/hide processes stats0
Enable/disable Irix/Solaris mode
Task’s CPU usage will be divided by the total number of CPUs
1
Switch between global CPU and per-CPU stats2
Enable/disable left sidebar3
Enable/disable the quick look module4
Enable/disable all but quick look and load module5
Enable/disable top menu (QuickLook, CPU, MEM, SWAP and LOAD)6
Enable/disable mean GPU mode/
Switch between process command line or command name