Netdata – A Real-Time Performance Monitoring Tool for Linux Systems

netdata is a extremely optimized Linux utility that provides real-time (per second) performance monitoring for Linux systems, applications, SNMP devices, etc. and shows full interactive charts that absolutely render all collected values over the web browser to analyze them.

Don’t Miss: 20 Useful Command-line Tools to Monitor Linux Performance

It has been developed to be installed on each Linux system, without interrupting the current running applications on it. You can use this tool to monitor and get overview of what is happening in real-time and what just happened, on your Linux systems and applications.

This is what it monitors:

  1. Total and Per Core CPU usage, interrupts, softirqs and frequency.
  2. Total Memory, RAM, Swap and Kernel usage.
  3. Disk I/O (per disk: bandwidth, operations, backlog, utilization, etc).
  4. Monitors Network interfaces including: bandwidth, packets, errors, drops, etc).
  5. Monitors Netfilter / iptables Linux firewall connections, events, errors, etc.
  6. Processes (running, blocked, forks, active, etc).
  7. System Applications with the process tree (CPU, memory, swap, disk reads/writes, threads, etc).
  8. Apache and Nginx Status monitoring with mod_status.
  9. MySQL database monitoring: queries, updates, locks, issues, threads, etc.
  10. Postfix email server message queue.
  11. Squid proxy server bandwidth and requests monitoring.
  12. Hardware sensors (temperature, voltage, fans, power, humidity, etc).
  13. SNMP devices.

netdata Installation on Linux Systems

The latest release of netdata can be easily installed on Arch Linux, Gentoo Linux, Solus Linux and Alpine Linux using your package manager as shown.

$ sudo pacman -S netdata         [Install Netdata on Arch Linux]
$ sudo emerge --ask netdata      [Install Netdata on Gentoo Linux]
$ sudo eopkg install netdata     [Install Netdata on Solus Linux]
$ sudo apk add netdata           [Install Netdata on Alpine Linux]

On Debian/Ubuntu and RHEL/CentOS/Fedora, there is one line installation script that will install latest netdata and also keep it up to date automatically.

$ bash <(curl -Ss https://my-netdata.io/kickstart.sh            [On 32-bit]
$ bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)  [On 64-bit]

The above script will:

  • discover the distribution and installs the needed software packages for building netdata (will ask for confirmation).
  • downloads the latest netdata source tree to /usr/src/netdata.git.
  • installs netdata by executing ./netdata-installer.sh from the source tree.
  • installs netdata-updater.sh to cron.daily, so your netdata will be updated daily (you will receive a alert from cron only if the update fails).

Note: The kickstart.sh script progress all its parameters to netdata-installer.sh, so you can define more parameters to modify the installation source, enable/disable plugins, etc.

Alternatively, you can also install latest netdata manually by cloning its repository, but before you start installing netdata, make sure you have these basic build environment packages installed on the system, if not install it using your respective distribution package manager as shown:

On Debian / Ubuntu

# apt-get install zlib1g-dev gcc make git autoconf autogen automake pkg-config

On Centos / Redhat / Fedora

# yum install zlib-devel gcc make git autoconf autogen automake pkgconfig

Next, clone the netdata repository from git and run netdata installer script to build it.

# git clone https://github.com/firehol/netdata.git --depth=1
# cd netdata
# ./netdata-installer.sh

Note: The netdata-installer.sh script will build netdata and install it on your Linux system.

Once the netdata installer finishes, the file /etc/netdata/netdata.conf will be created in your system.

Now it’s time to start netdata by executing the following command from the terminal.

# /usr/sbin/netdata

You can also stop netdata by terminating it’s process with killall command as shown.

# killall netdata

Note: Netdata saves on exit its round robbin database information under /var/cache/netdata file, so that when you start again netdata, it will continue from where it was stopped last time.

Starting and Testing netdata

Now open your browser and navigate to the following address to access the web site for all graphs:

# http://127.0.0.1:19999/

Check out the video that shows how Real-time Linux performance monitoring done here: https://www.youtube.com/watch?v=QIZXS8A4BvI

netdata - Linux Real Time Performance Monitoring

netdata – Linux Real Time Performance Monitoring

You can also view the running configuration of netdata at any time, by going to:

http://127.0.0.1:19999/netdata.conf
netdata Configuration

netdata Configuration

Updating netdata

You can update netdata daemon to the most recent version by going into netdata.git directory you downloaded before and running:

# cd /path/to/netdata.git
# git pull
# ./netdata-installer.sh

The above netdata installer script will build new version and restart netdata.

Reference: https://github.com/firehol/netdata/

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

41 Responses

  1. Vinod Samant says:

    Hi All,

    How can we add apache web server on netdata .Can you explain ?

  2. steve says:

    Hi,

    What I’d like to do is to be able to take the data (/var/cache/netdata/*) and have it move before it gets purged. I don’t want to keep it on the system as it gets to be too much and Id like to have the historical trending.

    In the docs above it says round robbin data but I tried using rrdtool on the dbs and it says they are not rrd databases. Any ideas on what I can do for this?

  3. Edward says:

    Got Netdata installed on a server that REALLY needed it.
    I am loving this. THANKS

  4. Shashi says:

    Hello Ravi,

    Good post. I installed on a RedHat Linux server. 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)
    2017-02-22 10:41:38: netdata: ERROR: Cannot bind to ip ‘::’, port 19999
    2017-02-22 10:41:38: netdata: INFO: Listen socket [0.0.0.0]:19999 opened.

    I cannot connect from a browser when I tried http://linux-hostname:1999
    Can you please suggest?

    • Ravi Saive says:

      @Shashi,

      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.

      You can verify the port by running netstat command.

      # netstat -antp | grep LISTEN | grep 19999
      
      • Shashi says:

        Hi Ravi,

        I am trying this on a sandbox environment and asking the networking team for firewall rules change would be quite challenging and time consuming.

        Is there a way I can find:

        1) an open port that’s not blocked by the firewall and
        2) change the default 19999 port to a different one?

        Thanks

  5. David Darr says:

    Do you know if this app can monitor other machines of which its not installed on? Also this would be cool to integrate into ddwrt.

    • Ravi Saive says:

      @David,

      Unfortunately, Netdata application is not designed to monitor remote Linux machines and nor its possible to integrate it with any other tool..

  6. Narayan says:

    When I try to install on RHEL 7 it shows the following error ,

    ” Sorry! NetData failed to build…

    You may need to check these:

    1. The package uuid-dev (or libuuid-devel) has to be installed.

    If your system cannot find libuuid, although it is installed
    run me with the option: –libs-are-really-here

    2. The package zlib1g-dev (or zlib-devel) has to be installed.

    If your system cannot find zlib, although it is installed
    run me with the option: –libs-are-really-here

    3. You need basic build tools installed, like:

    gcc make autoconf automake pkg-config

    Autoconf version 2.60 or higher is required.

    If you still cannot get it to build, ask for help at github:

    https://github.com/firehol/netdata/issues

    What can I do now?

    • Ravi Saive says:

      @Narayan,

      Please find install the missing dependency packages as shown in the article, before installing Netdata tool, here is the command to install those missing packages.

      # yum install zlib-devel gcc make git autoconf autogen automake pkgconfig uuid-dev 
      
    • Superior says:

      @Narayan, 1st run yum install libuuid-devel
      then yum install zlib-devel
      and then run installer with following command
      ./netdata-installer.sh –libs-are-really-here

      Hope this will solve your issue.

      Thanks

    • Edward says:

      On mine this was missing ( libuuid-devel )
      See if thats what you need

  7. Superior says:

    Hello Ravi,
    Thanks for the tutorial. I have installed it on 3 different servers. 1 of them is showing Firewall (Netfilter) data but other 2 are not showing this option. I have repeated the same steps on all servers. Can you please guide how to enable firewall plugin on other 2 servers?
    Thanks

    • Ravi Saive says:

      @Umar,

      On the other servers, the firewall service is running? could you share the screenshots of other servers? so that we check and provide you a solution..

  8. treximaru says:

    on raspbian, i also need to install uuid-dev.
    it works pretty well…

  9. Sushant says:

    Will try this tool…

Leave a Reply to Superior Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.