How to Install Saidar in CentOS

How to Install Saidar in CentOS

Saidar is a text-based utility used to view system statistics that are available in libstatgrab. The libstatgrab provides an access to statistics about the system information including CPU, processes, load, memory, network I/O and disks I/O along with their free space. Installation of Saidar monitoring tool in CentOS is explained in this article.


Installation of Saidar

First you need to install epel repository as shown below,

[root@linuxhelp1 ~]# yum install epel-release -y
Loaded plugins: fastestmirror, langpacks
base                                                                                                                 | 3.6 kB  00:00:00     
extras                                                                                                               | 3.4 kB  00:00:00     
updates                                                                                                              | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirror.fibergrid.in
 * extras: mirror.fibergrid.in
 * updates: mirror.fibergrid.in
Resolving Dependencies
-->  Running transaction check
--->  Package epel-release.noarch 0:7-6 will be installed
-->  Finished Dependency Resolution
.
.
.
Transaction Summary
============================================================================================================================================
Install  1 Package

Total download size: 14 k
Installed size: 24 k
Downloading packages:
epel-release-7-6.noarch.rpm                                                                                          |  14 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-6.noarch                                                                                                  1/1
  Verifying  : epel-release-7-6.noarch                                                                                                  1/1

Installed:
  epel-release.noarch 0:7-6                                                                                                                 

Complete!

Then utilize the following command to install the libstatgrab package.

[root@linuxhelp1 ~]# yum install libstatgrab -y
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink                                                                                                 | 4.2 kB  00:00:00     
epel                                                                                                                 | 4.3 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                                          | 170 kB  00:00:00     
(2/3): epel/x86_64/updateinfo                                                                                        | 673 kB  00:00:11     
(3/3): epel/x86_64/primary_db                                                                                        | 4.3 MB  00:00:39     
Loading mirror speeds from cached hostfile
 * base: mirror.fibergrid.in
 * epel: epel.mirror.net.in
 * extras: mirror.fibergrid.in
 * updates: mirror.fibergrid.in
Resolving Dependencies
-->  Running transaction check
--->  Package libstatgrab.x86_64 1:0.91-4.el7 will be installed
-->  Processing Dependency: liblog4cplus-1.1.so.9()(64bit) for package: 1:libstatgrab-0.91-4.el7.x86_64
-->  Running transaction check
--->  Package log4cplus.x86_64 0:1.1.3-0.4.rc3.el7 will be installed
-->  Finished Dependency Resolution
.
.
.
Total download size: 216 k
Installed size: 651 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/libstatgrab-0.91-4.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEYETA
Public key for libstatgrab-0.91-4.el7.x86_64.rpm is not installed
(1/2): libstatgrab-0.91-4.el7.x86_64.rpm                                                                             |  53 kB  00:00:00     
(2/2): log4cplus-1.1.3-0.4.rc3.el7.x86_64.rpm                                                                        | 162 kB  00:00:01     
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                       148 kB/s | 216 kB  00:00:01     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : " Fedora EPEL (7) < epel@fedoraproject.org> " 
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-6.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : log4cplus-1.1.3-0.4.rc3.el7.x86_64                                                                                       1/2
  Installing : 1:libstatgrab-0.91-4.el7.x86_64                                                                                          2/2
  Verifying  : log4cplus-1.1.3-0.4.rc3.el7.x86_64                                                                                       1/2
  Verifying  : 1:libstatgrab-0.91-4.el7.x86_64                                                                                          2/2

Installed:
  libstatgrab.x86_64 1:0.91-4.el7                                                                                                           

Dependency Installed:
  log4cplus.x86_64 0:1.1.3-0.4.rc3.el7                                                                                                      

Complete!

Now its time to install the saidar package.

[root@linuxhelp1 ~]# yum install saidar -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.fibergrid.in
 * epel: epel.mirror.net.in
 * extras: mirror.fibergrid.in
 * updates: mirror.fibergrid.in
Resolving Dependencies
-->  Running transaction check
--->  Package saidar.x86_64 1:0.91-4.el7 will be installed
-->  Finished Dependency Resolution
.
.
.
Total download size: 25 k
Installed size: 43 k
Downloading packages:
saidar-0.91-4.el7.x86_64.rpm                                                                                         |  25 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:saidar-0.91-4.el7.x86_64                                                                                               1/1
  Verifying  : 1:saidar-0.91-4.el7.x86_64                                                                                               1/1

Installed:
  saidar.x86_64 1:0.91-4.el7                                                                                                                

Complete!

Once the saidar is installed successfully, open it through the terminal.

[root@linuxhelp1 ~]# saidar

If you want to view the output in color, use the following command.

[root@linuxhelp1 ~]# saidar -c

The ' -d' command shows the output with time delay.

[root@linuxhelp1 ~]# saidar -d 1

The ' -c -d' command displays the output in color along with the time delay.

[root@linuxhelp1 ~]# saidar -c -d 2

FAQ
Q
Is support for chroot planned?
A
Unknown at this time. Unless/until that changes, you can achieve a similar - or better - effect by using OS-level features (for example BSD Jails, OpenVZ with proxyarp on Linux, etc.).
Q
how to install it in debian?
A
follow this link : " https://www.linuxhelp.com/how-to-install-saidar-system-monitoring-tool-in-debian/ "
Q
any alternative available for this tool ?
A
yes, there is 1.atop 2.Glances 3.Resource Monitor
Q
how do I install and use atop ?
A
follow this link : " https://www.linuxhelp.com/how-to-install-atop-in-linux/ "
Q
how do I use glance ?
A
follow this link : https://www.linuxhelp.com/monitor-linux-system-performance-using-glances-tool/