How to install Netdata on Ubuntu 18.04

To install Netdata on Ubuntu 18.04

Netdata is a free software (a daemon) which gathers a real-time performance data from Linux systems, Application, and SNMP devices, picture it in the web-based interface. The users can monitor anything with the API plugin and also easily embed the charts with any external web pages. It has its own web server to display the final report in graphical format. It is so simple to install Netdata on Ubuntu 18.04 and this tutorial covers the ground on the same process.

Installation

First, install the required dependencies as follows.

root@linuxhelp1:~# apt-get install zlib1g-dev uuid-dev libmnl-dev pkg-config curl gcc make autoconf autoconf-archive autogen automake python python-yaml python-mysqldb nodejs lm-sensors python-psycopg2 netcat git -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python is already the newest version (2.7.15~rc1-1).
python set to manually installed.
.
.
Setting up g++-7 (7.3.0-16ubuntu3) ...
Setting up autogen (1:5.18.12-4) ...
Setting up gcc (4:7.3.0-3ubuntu2) ...
Setting up g++ (4:7.3.0-3ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

And then clone the Netdata package using the Git.

root@linuxhelp1:~# git clone https://github.com/firehol/netdata.git --depth=1 ~/netdata
Cloning into ' /root/netdata' ...
remote: Counting objects: 753, done.
remote: Compressing objects: 100% (703/703), done.
remote: Total 753 (delta 105), reused 251 (delta 33), pack-reused 0
Receiving objects: 100% (753/753), 2.58 MiB | 714.00 KiB/s, done.
Resolving deltas: 100% (105/105), done.

Now, switch to the Netdata directory.

root@linuxhelp1:~# cd netdata/

Use the following installation script to start the installation of Netdata.

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

  You are about to build and install netdata to your system.
  It will be installed at these locations:
.
.
sudo ln -s /root/netdata/netdata-updater.sh /etc/cron.daily/netdata-updater
 --- We are done! ---
  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   ' -'    ' -'    ' -'    ' -'    ' -'    is installed and running now!  -'    ' -'  
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---> 
  enjoy real-time performance and health monitoring...

Finally, we need to start and enable the Netdata service to make the changes effect.

root@linuxhelp1:~/netdata# systemctl start netdata
root@linuxhelp1:~/netdata# systemctl enable netdata

Open a browser and type the following URL of http://localhost:19999.

You will see the Netdata dashboard as follows.

With this, the method to install Netdata on Ubuntu 18.04 comes to an end.

Tag : Netdata Ubuntu
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). what will do?
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.