{"id":8653,"date":"2021-07-30T08:57:10","date_gmt":"2021-07-30T08:57:10","guid":{"rendered":"https:\/\/linuxways.net\/?p=8653"},"modified":"2021-07-30T08:57:10","modified_gmt":"2021-07-30T08:57:10","slug":"how-to-monitor-system-resources-with-glances-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-monitor-system-resources-with-glances-on-ubuntu-20-04\/","title":{"rendered":"How to Monitor System Resources with Glances on Ubuntu 20.04"},"content":{"rendered":"<p>Glances is an open-source Terminal based monitoring tool that displays detailed monitoring information. It is a cross-platform tool that is supported on Linux, Windows, and MacOS. Glances also have a web interface that allows you to monitor remote Glances servers from any system\u2019s web browser. With the Glances monitoring tool, you can monitor Memory, CPU, load, network interfaces, filesystem, Disk I\/O, processes, uptime, etc.<\/p>\n<p>In this post, we will explain how to install and get started with the Glances monitoring tool. We will cover:<\/p>\n<ul>\n<li>Installing Glances via apt<\/li>\n<li>Installing Glances via snap<\/li>\n<\/ul>\n<p>Note: The procedure explained here has been tested on Ubuntu 20.04 LTS.<\/p>\n<h2>Installing Glances via apt<\/h2>\n<p>Ubuntu OS has Glances in its repositories, so you can install it easily using the apt command. Follow the below steps to install Glances on Linux Ubuntu via apt:<\/p>\n<p>1. To install Glances, use the command below in the Terminal:<\/p>\n<pre>$ sudo apt install glances<\/pre>\n<p>Enter your sudo password, and if you are asked for confirmation during installation, type <strong>y<\/strong> and press <strong>Enter<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"819\" class=\"wp-image-8654\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-645.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-645.png 786w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-645-288x300.png 288w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-645-768x800.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>After the installation of Glances is completed, you can use the command below for the verification:<\/p>\n<pre>$ glances --version<\/pre>\n<p>The output below verifies that Glances version <strong>3.1.3<\/strong> has been installed on our system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"68\" class=\"wp-image-8655\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-646.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-646.png 413w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-646-300x49.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/p>\n<h2>Installing Glances via Snap<\/h2>\n<p>Glances is also available as a snap package. Follow the below steps to install Glances on Linux Ubuntu via snap:<\/p>\n<p>1. First install snapd using this command:<\/p>\n<pre>$ sudo apt install snapd<\/pre>\n<p>Enter your sudo password, and if you are asked for confirmation during installation, type <strong>y<\/strong> and press <strong>Enter<\/strong>.<\/p>\n<p>2. Now install Glances using this command:<\/p>\n<pre>$ sudo snap install glances<\/pre>\n<p>3. After the installation of Glances is completed, you can use this command for the verification:<\/p>\n<pre>$ glances --version<\/pre>\n<p>The output below verifies that Glances version <strong>3.1.5<\/strong> has been installed on our system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"92\" class=\"wp-image-8656\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-647.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-647.png 702w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-647-300x39.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<h2>Using Glances<\/h2>\n<p>In order to use Glances to monitor system resources, use the command below:<\/p>\n<pre>$ glances<\/pre>\n<p>Here is how the Glances interface looks like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"575\" class=\"wp-image-8657\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-648.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-648.png 890w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-648-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-648-768x496.png 768w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/p>\n<h2>Glances web interface<\/h2>\n<p>To access Glances interface from the web browser, use the glances command with -w option:<\/p>\n<pre>$ glances -w<\/pre>\n<p>The output of the above command will tell you that the web UI has started. Now open the web browser and navigate to the below address:<\/p>\n<pre>http:\/\/&lt;glances-IP-address&gt;:61208<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"622\" class=\"wp-image-8658\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-649.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-649.png 973w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-649-300x192.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-649-768x491.png 768w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/p>\n<h2>Access Glances Web UI from outside<\/h2>\n<p>If you need to access the Glances web UI from another system on the network, then you will have to allow port 61208 on the firewall of the Glances server. To allow port 61208 on the firewall, use the command below:<\/p>\n<pre>$ sudo ufw allow 61208<\/pre>\n<p>Then run this command in the Terminal of Glances server:<\/p>\n<pre>$ glances -w<\/pre>\n<p>Now from the other system, open the web browser and navigate to the below address to access Glances web UI:<\/p>\n<pre>http :\/\/&lt;glances-IP-address&gt;:61208<\/pre>\n<h2>Uninstall Glances<\/h2>\n<p>In order to uninstall Glances from Ubuntu machine, use the command below:<\/p>\n<pre>$ sudo apt remove glances<\/pre>\n<p>Enter your sudo password, and if you are asked for confirmation during uninstallation, type <strong>y<\/strong> and press <strong>Enter<\/strong>.<\/p>\n<p>That is all there is to it! In this post, we covered how to install and get started with the Glances monitoring tool on Ubuntu. We also covered how to uninstall Glances in case you longer need it. To view more help, you can use the <em>glances &#8211;help<\/em> command.<\/p>","protected":false},"excerpt":{"rendered":"<p>Glances is an open-source Terminal based monitoring tool that displays detailed monitoring information. It is a cross-platform tool that is supported on Linux, Windows, and MacOS. Glances also&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[445,100],"class_list":["post-8653","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-glances","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8653"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8653\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}