How to install Gtop system monitoring tool on CentOS 7

How to install Gtop system monitoring tool on CentOS 7

Gtop is a system monitoring tool which reads information about processes and the states of the system in dynamic mode. It contains some views to monitor the CPU, memory, swap space, disk and network usage with a percentage and graphical representation in the system. This tutorial covers the installation procedure of Gtop system monitoring tool on CentOS 7.

Installation procedure

To start with the installation procedure, install the epel package by running the following command and press y to continue with the installation procedure.

[root@server1 ~]# yum install epel-release -y
BDB2053 Freeing read locks for locker 0x3ec4: 13934/140152169015104
BDB2053 Freeing read locks for locker 0x3ec6: 13934/140152169015104
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
.
.
.
Running transaction
  Installing : epel-release-7-9.noarch                                      1/1
  Verifying  : epel-release-7-9.noarch                                      1/1

Installed:
  epel-release.noarch 0:7-9                                                     
Complete!

The epel repository is installed in the system. Now download the dependency package for HTTP parser by running the wget command followed by the download link.

[root@server1 ~]# wget springdale.math.ias.edu/data/puias/unsupported/7/x86_64//http-parser-2.7.1-3.sdl7.x86_64.rpm
--2017-08-24 00:31:57--  http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//http-parser-2.7.1-3.sdl7.x86_64.rpm
Resolving springdale.math.ias.edu (springdale.math.ias.edu)... 192.16.204.192
.
.
.
100%[======================================> ] 30,784       137KB/s   in 0.2s   
2017-08-24 00:31:58 (137 KB/s) - ‘ http-parser-2.7.1-3.sdl7.x86_64.rpm’  saved [30784/30784]

The HTTP parser is downloaded in the target system. Install the HTTP parser package and press y to continue with the installation procedure.

[root@server1 ~]# yum install http-parser-2.7.1-3.sdl7.x86_64.rpm -y
Loaded plugins: fastestmirror, langpacks
Examining http-parser-2.7.1-3.sdl7.x86_64.rpm: http-parser-2.7.1-3.sdl7.x86_64
Marking http-parser-2.7.1-3.sdl7.x86_64.rpm to be installed

.
.
.
Installed:
  http-parser.x86_64 0:2.7.1-3.sdl7                                             
Complete!

Next install Node.js package by running the following command and press y to continue with the installation procedure.

[root@server1 ~]# yum install nodejs -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * epel: ftp.cuhk.edu.hk
 * extras: ftp.iitm.ac.in

.
.
.
Installed:
  nodejs.x86_64 1:6.11.1-1.el7                                                  

Dependency Installed:
  libuv.x86_64 1:1.10.2-1.el7        npm.x86_64 1:3.10.10-1.6.11.1.1.el7       
Complete!

The HTTP parser and Node.js package is installed in the system. Next install the Gtop package by running the following command.

[root@server1 ~]# npm install gtop -g

The Gtop command is installed successfully. Run the Gtop command in the terminal to monitor system process information.

[root@server1 ~]# gtop

Check the Gtop command in other third party tools. Below Gtop command executed in MobaXterm

The Gtop application is installed in the system successfully.

FAQ
Q
what is the License of Gtop?
A
Released under the MIT license.
Q
How to Troubleshooting Gtop?
A
If you see question marks or other different characters, try to run it with these environment variables:

$ LANG=en_US.utf8 TERM=xterm-256color gtop
Q
requirements for gtop ?
A
you will need the following requirements, Linux / OSX / Windows Node.js >= v4
Q
what are the alternative commands?
A
Here I have to gi ve some of the alternative for this, "htop, glances, nmon, vtop".
Q
If there is any GUI tools like this?
A
use the command gnome-system-monitor for default System monitor.