Installing Glances on Red Hat Enterprise Linux (RHEL) and Compatible Distributions

Glances is a powerful, real-time system monitoring tool for Linux and Windows. It provides a wealth of information about CPU usage, memory, disk I/O, network traffic, processes, and more – either locally or remotely through a web interface. This guide covers installation on various Red Hat-based systems, including:

  • Red Hat Enterprise Linux (RHEL) 5, 6, 7, 8
  • CentOS 5, 6, 7, 8
  • Rocky Linux 8 (and compatible versions)

Glances is a fantastic resource monitor tool for Linux and Windows-based systems. CPU, Disk, Memory, and other resources can be monitored either locally or remotely via the web page.

This is the main Glances website

Red Hat 5 / Red Hat 6 / Centos 5/6 installation instructions

Ensure that you run as root or sudo root permissions

Bash
sudo -i
sudo yum-config-manager --enable rhel-server-rhscl-6-rpms
sudo yum install rh-python36 -y
sudo scl enable rh-python36 bash
sudo pip install --upgrade pip
sudo pip install bottle
sudo pip install glances
sudo glances -w -t 5 &

Red Hat 7 / Centos 7 installation instructions

Ensure that you run as root or sudo root permissions.

Bash
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
sudo yum install rh-python36 -y
sudo yum install rh-python36-python-pip -y
sudo scl enable rh-python36 bash 
curl -L https://bit.ly/glances | /bin/bash
sudo glances -w -t 5 &

Red Hat 8 / Centos 8 Installation Instructions

Ensure that you run as root or sudo root permissions.

Bash
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Bash
sudo yum install snapd

Bash
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install glances

You will need to exit your current putty session and log back in.

Then type Glances

Starting and Using Glances

Basic Usage:

  • Local Monitoring: Simply type glances in your terminal.
  • Web Interface:
    • Start the web server: sudo glances -w -t 5 & (refreshes every 5 seconds)
    • Access from your browser: http://[your server's IP]:61208

Advanced Usage: Explore Glances’ command-line options and web interface features for customization.

5. Troubleshooting

  • “Command not found”:
    • Make sure you’ve activated the correct Python environment (if using RHSCL).
    • Verify Glances is installed in your PATH (sudo ln -s /var/lib/snapd/snap /snap) if using Snap on RHEL8.
  • Web interface not accessible:
    • Check your server’s firewall settings.
    • Ensure the web server is running.

Elsewhere On TurboGeek:  Arcserve BMR Restore for Linux Server

Richard.Bailey

Richard Bailey, a seasoned tech enthusiast, combines a passion for innovation with a knack for simplifying complex concepts. With over a decade in the industry, he's pioneered transformative solutions, blending creativity with technical prowess. An avid writer, Richard's articles resonate with readers, offering insightful perspectives that bridge the gap between technology and everyday life. His commitment to excellence and tireless pursuit of knowledge continues to inspire and shape the tech landscape.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »