{"id":4758,"date":"2021-02-24T13:02:31","date_gmt":"2021-02-24T13:02:31","guid":{"rendered":"https:\/\/linuxways.net\/?p=4758"},"modified":"2021-02-25T11:30:46","modified_gmt":"2021-02-25T11:30:46","slug":"how-to-install-netdata-monitoring-tool-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-netdata-monitoring-tool-on-ubuntu-20-04\/","title":{"rendered":"How to Install Netdata Monitoring Tool on Ubuntu 20.04"},"content":{"rendered":"<p>Getting real-time statistics on various system metrics is a top priority for system administrators, developers, and operation teams in general. It helps in monitoring systems in realtime and quickly picking up faults or errors and resolving them to ensure things get back on track.<\/p>\n<p>Netdata is a free and open-source distributed, real-time monitoring application that runs across various computing devices; physical servers, cloud servers, containers, and even IoT devices. It collects a great deal of data and visualizes it on sleek and interactive dashboards. We are going to install Netdata on Ubuntu 20.04 LTS and then demonstrate just how various metrics are visualized.<\/p>\n<h2>Step 1: Install Netdata using kickstart.sh script<\/h2>\n<p>This is the most preferred way of installing Netdata because it allows you to pass other arguments on the same command to customize the installation process. Most importantly, this method seamlessly works across all distros.<\/p>\n<p>At the start you might want to view more information about Netdata. Use the APT command as follows.<\/p>\n<pre><strong>$ apt show netdata<\/strong><\/pre>\n<p>The output provides Netdata information such as the latest version, origin, installation size, and a description of the package.<\/p>\n<p>To install Netdata, simply run the <strong>kickstart<\/strong> script as follows.<\/p>\n<pre><strong>$ bash &lt;(curl -Ss https:\/\/my-netdata.io\/kickstart.sh)<\/strong><\/pre>\n<p>As you will notice, the script performs a bunch of operations. First, it autodetects the Linux Operating system and distribution you are running and later install the requisite packages.<\/p>\n<p>From the output below, you can see that our OS information has been retrieved and displayed to stdout by the script.<\/p>\n<p>The script then proceeds to check if you have an existing instance of Netdata, and if there is one, the script updates Netdata instead of installing Netdata afresh.<\/p>\n<p>Thereafter, the script pulls Netdata from the Git repository and stores it in <strong>\/usr\/src\/netdata.git<\/strong>. Path. All the required files and dependencies are thereafter installed and the package index updated.<\/p>\n<p>Along the way, the location of Netdata files including configuration files, web files, db files and log files will be displayed as shown.<\/p>\n<p>Towards the end, basic instructions on how to access Netdata dashboard along with starting and stopping Netdata will be displayed.<\/p>\n<p>The updater script <strong>netdata-updater.sh<\/strong> is then added to <strong>\/etc\/cron-daily <\/strong>f to ensure that Netdata is continually updated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"431\" class=\"wp-image-4759\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-25.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-25.jpeg 932w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-25-300x139.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-25-768x355.jpeg 768w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/p>\n<p>As the installation wraps up , the script will inform you that Netdata was successfully installed and is now running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"514\" class=\"wp-image-4760\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-367.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-367.png 924w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-367-300x167.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-367-768x427.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/p>\n<p>The entire installation takes quite a while you might want to take a short break or simply hang around until it is completed.<\/p>\n<h2>Step 2: Confirm Netdata is running<\/h2>\n<p>Netdata is finally installed. However, it\u2019s prudent to verify that indeed Netdata service is active and running.<\/p>\n<p>By default, Netdata listens on port 19999. To confirm this, run the netstat command below:<\/p>\n<pre><strong>$ sudo netstat -pnltu | grep 19999<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"194\" class=\"wp-image-4761\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-368.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-368.png 858w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-368-300x68.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-368-768x174.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<p>Also, you can confirm that Netstat systemd service is running by invoking:<\/p>\n<pre><strong>$ sudo systemctl status netdata<\/strong><\/pre>\n<p>The output confirms that indeed, Netdata is running as we would expect.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"264\" class=\"wp-image-4762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-369.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-369.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-369-300x107.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/p>\n<h2>Step 3: Configure firewall<\/h2>\n<p>At this point, you can access Netdata from the browser from your host system. However, if UFW firewall is enabled, this will not be possible. With that in mind, port 19999 needs to be allowed.<\/p>\n<p>So run the following commands:<\/p>\n<pre><strong>$ sudo ufw allow 19999\/tcp<\/strong><\/pre>\n<pre><strong>$ sudo ufw reload<\/strong><\/pre>\n<p>Then confirm that port 19999 is allowed on the firewall.<\/p>\n<pre><strong>$ sudo ufw status<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"355\" class=\"wp-image-4763\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-370.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-370.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-370-300x145.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/strong><\/p>\n<h2>Step 4: Access Netdata dashboard<\/h2>\n<p>All the configurations are done and dusted. As we wrap up, we are going to access Netdata by browsing the following URL. Replace the<strong> host-ip<\/strong> with your host\u2019s real IP address.<\/p>\n<pre><strong>http:\/\/host-ip:19999<\/strong><\/pre>\n<p>And voila! Netdata dashboard will come into view with elegant and beautiful visualizations displaying a System overview of the main system metrics such as CPU utilization, network bandwidth stats, disk read\/write and RAM utilization.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1366\" height=\"723\" class=\"wp-image-4764\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-371.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-371.png 1366w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-371-300x159.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-371-1024x542.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-371-768x406.png 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p>On the right sidebar are additional system metric options that you can click on to view dashboards that visualize real-time statistics.<\/p>\n<p>For instance, to have a glance at the network bandwidth, select the \u2018Network Interfaces\u2019 icon as shown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"591\" class=\"wp-image-4765\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-372.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-372.png 665w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-372-300x267.png 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/p>\n<p>The \u2018Network Interfaces\u2019 dashboard will be displayed with bandwidth statistics on various network adapters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1286\" height=\"561\" class=\"wp-image-4766\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-373.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-373.png 1286w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-373-300x131.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-373-1024x447.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/02\/word-image-373-768x335.png 768w\" sizes=\"auto, (max-width: 1286px) 100vw, 1286px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Netdata provides an excellent solution for monitoring your single node in real-time. You can configure alarms and notifications which can be triggered when a certain event or threshold is exceeded. Give Netdata a try and let us know about your experience.<\/p>","protected":false},"excerpt":{"rendered":"<p>Getting real-time statistics on various system metrics is a top priority for system administrators, developers, and operation teams in general. It helps in monitoring systems in realtime and&hellip;<\/p>","protected":false},"author":32,"featured_media":4767,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-4758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/4758","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\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=4758"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/4758\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/4767"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=4758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=4758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=4758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}