How to Install Netdata in Ubuntu

To install Netdata in Ubuntu

Netdata is an extremely light-weight, real time performance monitoring tool, which monitors system, applications, embedded devices, servers and many more. This tutorial will help you with the installation procedure of Netdata on your Ubuntu machine.


Installation of Netdata

The prior installation of the prerequisites are essential for installing Netdata. So, use the following command for the same.

root@linuxhelp:/home/user1# apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config curl jq nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
&hellip 
&hellip 
Setting up libmnl-dev (1.0.3-5) ...
Setting up nodejs (4.2.6~dfsg-1ubuntu4.1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Setting up uuid-dev:amd64 (2.27.1-6ubuntu3.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

After installing the prerequisites, clone the Netdata files from git by issuing the following command.

root@linuxhelp:/home/user1# cd /opt/
root@linuxhelp:/opt# git clone https://github.com/firehol/netdata.git --depth=1
Cloning into ' netdata' ...
remote: Counting objects: 419, done.
remote: Compressing objects: 100% (389/389), done.
remote: Total 419 (delta 61), reused 149 (delta 17), pack-reused 0
Receiving objects: 100% (419/419), 2.04 MiB | 211.00 KiB/s, done.
Resolving deltas: 100% (61/61), done.
Checking connectivity... done.
root@linuxhelp:/opt# ls -l
total 12
drwxr-xr-x  3 root root 4096 Nov 14 00:42 ./
drwxr-xr-x 24 root root 4096 Aug  2 15:09 ../
drwxr-xr-x 19 root root 4096 Nov 14 00:43 netdata/

Now is the time to install Netdata. Invoke the following command for the same.

root@linuxhelp:/opt/netdata# ./netdata-installer.sh
^
  |.-.   .-.   .-.   .-.   .  netdata                                        
  |   ' -'    ' -'    ' -'    ' -'    real-time performance monitoring, done right!  
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---> 

  You are about to build and install netdata to your system.
By default netdata listens on all IPs on port 19999,
so you can access it with:
http://this.machine.ip:19999/
To stop netdata, just kill it, with:
  killall netdata
To start it, just run it:
 /usr/sbin/netdata
Uninstall script generated: ./netdata-uninstaller.sh
Update script generated   : ./netdata-updater.sh
 ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   ' -'    ' -'    ' -'    ' -'    ' -'    is installed and running now!  -'    ' -'   
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---> 
enjoy real-time performance and health monitoring...


To Access Netdata

Open the web browser and call your IP address along with the portnumber ' 19999' . Netdata can be used to view the following:

1. System Overview

2. System Load

3. Memory usage

4. Disk Usage

5. Network Interface

FAQ
Q
During Netdata in Ubuntu When I start the service, I see the following message.
2017-02-22 10:41:38: netdata: ERROR: IPv6 socket() on ip ‘::’ port 19999 failed. (errno 97, Address family not supported by protocol)
A
It seems that it couldn’t bind on IPv6 port due to firewall restrictions, I suggest you to check your firewall rules and open port 19999 on firewall or open it for IPv4.
Q
Is it possible to monitor other machines of which netdata is not installed on?
A
Unfortunately, Netdata application is not designed to monitor remote Linux machines
Q
Is it okay to install Netdata on a running LAMP server? I mean is it something like webmin, where you have to install before everything?
A
Yes, its okay to install Netdata monitoring tool on LAMP setup or any application setup, as its runs on different port so no issues at all.
Q
I got some errors as executing the before-mentioned command.
[root@ip-10-0-7-128 ~]# /usr/sbin/netdata
16-04-04 07:58:19: ERROR: netdata: IPv6 bind() failed. (errno 98, Address already in use
A
It seems that the port 19999, which is used by netdata monitoring tool was already using by some other application, try to use different port for netdata while executing like:

# /usr/sbin/netdata
Q
What are the alternatives for Netdata ?
A
The alternatives are
Zabbix ,
Nagios,
PRTG Network Monitor,
Munin.