{"id":222,"date":"2017-07-20T23:45:47","date_gmt":"2017-07-20T23:45:47","guid":{"rendered":"https:\/\/pure-media.info\/?p=222"},"modified":"2017-08-09T00:30:44","modified_gmt":"2017-08-09T00:30:44","slug":"set-real-time-performance-monitoring-netdata-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/pure-media.info\/index.php\/2017\/07\/20\/set-real-time-performance-monitoring-netdata-ubuntu-16-04\/","title":{"rendered":"How to Set Up Real-Time Performance Monitoring with Netdata on Ubuntu"},"content":{"rendered":"<p><strong>Netdata provides accurate performance monitoring through extensible web dashboards that visualize the processes and services on your Linux systems. It monitors metrics about CPU, memory, disks, networks, processes, and more.<\/strong><\/p>\n<p>Netdata needs no extra configuration necessary once installed, but provides significant customization. The efficiency and speed of the application aims to be comparable to native console administration tools such as vmstat, iostat, and htop .<\/p>\n<p>The steps in this tutorial cover everything you need to successfully set up one Ubuntu 16.04 server running Netdata using its built-in web server<\/p>\n<p><strong>Before we install anything, make sure the system package index is up to date.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo apt-get update &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<p><strong>Next, install Netdata&#8217;s dependencies, which include the\u00a0<code>gcc<\/code>\u00a0(a C compiler),\u00a0<a href=\"http:\/\/www.gnu.org\/software\/autoconf\/autoconf.html\">GNU Autoconf<\/a>\u00a0tools,\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Globally_unique_identifier\">GUID<\/a>management, and compression libraries for Netdata&#8217;s internal web server.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make autoconf autoconf-archive autogen automake pkg-config curl<\/code><\/p>\n<p><strong>The next set of packages are optional but recommended by Netdata, and include\u00a0<a href=\"https:\/\/www.digitalocean.com\/community\/tags\/python?type=tutorials\">Python<\/a>, some Python packages, and Node.JS. The stable version of\u00a0<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-node-js-on-ubuntu-16-04\">Node.js<\/a>\u00a0bundled with the system package manager is fine for Netdata&#8217;s requirements. Install these next.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install python python-yaml python-mysqldb python-psycopg2 nodejs lm-sensors netcat<\/code><\/p>\n<p><strong>To install Netdata itself, we must use the project&#8217;s GitHub repository. Clone the Netdata repository into your home directory.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">git clone https:\/\/github.com\/firehol\/netdata.git --depth=1 ~\/netdata<\/code><\/p>\n<p><strong>Move to the newly cloned directory.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cd ~\/netdata<\/code><\/p>\n<p><strong>Now build and install the application using the\u00a0<code>netdata-installer.sh<\/code>\u00a0shell script in this directory. Make sure to append\u00a0<code>sudo<\/code>\u00a0here, otherwise the way in which Netdata collects system data (through data collectors) would not function correctly.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo .\/netdata-installer.sh<\/code><\/p>\n<p><strong>The output you&#8217;ll see at first contains information on where Netdata will store all of it&#8217;s components. You can read through these so you are a bit more familiar with how the program is spread out over the filesystem after its installation.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Installer Output\r\n. . .\r\n  It will be installed at these locations:\r\n\r\n   - the daemon    at \/usr\/sbin\/netdata\r\n   - config files  at \/etc\/netdata\r\n   - web files     at \/usr\/share\/netdata\r\n   - plugins       at \/usr\/libexec\/netdata\r\n   - cache files   at \/var\/cache\/netdata\r\n   - db files      at \/var\/lib\/netdata\r\n   - log files     at \/var\/log\/netdata\r\n   - pid file      at \/var\/run\r\n. . .<\/pre>\n<p><strong>Press\u00a0<code>ENTER<\/code>\u00a0to continue with the installation. After a moment, at the end of the output chain, you&#8217;ll see the following message:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">. . .\r\n  ^\r\n  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-\r\n  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'  \r\n  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---&gt;\r\n\r\n  enjoy real-time performance and health monitoring...<\/pre>\n<p><strong>Netdata is now installed and running successfully, and will run automatically upon rebooting the server as well.<\/strong><\/p>\n<p><strong>If you have UFW enabled,\u00a0you&#8217;ll need to open port\u00a0<code>19999<\/code>\u00a0for Netdata&#8217;s internal web server.<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo ufw allow 19999\/tcp<\/code><\/p>\n<p><strong>At this point, you can view the default dashboard by visiting\u00a0<code>http:\/\/<\/code><span class=\"highlight\">your_server_ip<\/span><code>:19999\/<\/code>\u00a0in your favorite browser. You&#8217;ll see an overview of the system&#8217;s live metrics. This is a good check that everything&#8217;s working.\u00a0<\/strong><strong>If there&#8217;s an update available, you just need to run the supplied update script from the Netdata Git repository, which we cloned to the Linux user&#8217;s home directory in Step 1. That is, when an update is available, just run\u00a0<code>sudo ~\/netdata\/netdata-updater.sh<\/code>\u00a0from the command line.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Netdata provides accurate performance monitoring through extensible web dashboards that visualize the processes and services on your Linux systems. It<\/p>\n","protected":false},"author":1,"featured_media":224,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[85],"tags":[74,16,31,46,43,10,291,120,2,289,5,9,290,7],"class_list":["post-222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-tip","tag-automated","tag-command","tag-debian","tag-git","tag-how-to","tag-install","tag-netdata","tag-performance","tag-plex","tag-real","tag-ssh","tag-tahr","tag-time","tag-ubuntu"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2017\/07\/netdata.png?fit=2054%2C1161&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7oBs4-3A","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":0,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media\/224"}],"wp:attachment":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}