Previously we talked about a good tool named GoAccess for traffic analysis. netdata is similar quality good tool which provides a web ui for monitoring, log analysis and other sysadmin works. Here is how to install netdata on Ubuntu 16.04 running Apache2 on single cloud server. Installing on server running Apache2 is just easy. There is huge documentations on netdata’s official Github repo’s Wiki. netdata will run on TCP port number 19999. So if you are using iptables or any firewall, you need to open the port. Test it on dev server first, get used around how to tweak it, configure it; thereafter configure to add remote servers.
How To Install netdata on Ubuntu 16.04
First we ran these commands to install any needed missing tool :
1 2 | sudo apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make autoconf autoconf-archive autogen automake pkg-config curl sudo apt-get install python python-yaml python-mysqldb python-psycopg2 nodejs lm-sensors netcat |
We installed in this way following their official guide :
---
1 2 | curl https://my-netdata.io/kickstart-static64.sh >/tmp/kickstart-static64.sh sh /tmp/kickstart-static64.sh |
Then got this response :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | ^ |.-. .-. .-. .-. . netdata | '-' '-' '-' '-' real-time performance monitoring, done right! +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---> (C) Copyright 2017, Costa Tsaousis All rights reserved Released under GPL v3+ You are about to install netdata to this system. netdata will be installed at: /opt/netdata The following changes will be made to your system: # USERS / GROUPS User 'netdata' and group 'netdata' will be added, if not present. # LOGROTATE This file will be installed if logrotate is present. - /etc/logrotate.d/netdata # SYSTEM INIT This file will be installed if this system runs with systemd: - /etc/systemd/system/netdata.service or, for older Centos, Debian/Ubuntu or OpenRC Gentoo: - /etc/init.d/netdata will be created This package can also update a netdata installation that has been created with another version of it. Your netdata configuration will be retained. After installation, netdata will be (re-)started. netdata re-distributes a lot of open source software components. Check its full license at: https://github.com/firehol/netdata/blob/master/LICENSE.md Please type y to accept, n otherwise: y |
Then got response :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ... [/opt/netdata]# chmod g+rx\,o+rx /opt OK [/opt/netdata]# chown -R netdata:netdata /opt/netdata OK --- fix plugin permissions --- [/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin OK [/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/apps.plugin OK --- starting netdata --- --- Start netdata --- [/opt/netdata]# /bin/systemctl stop netdata OK [/opt/netdata]# /bin/systemctl restart netdata OK ^ |.-. .-. .-. .-. .-. . netdata .-. .- | '-' '-' '-' '-' '-' is installed and running now! -' '-' +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+---> OK |
Then went to my.ip.address::19999
and my.ip.address::19999/tv.html
(multiple server mode) to view the Web UI.
You will really get useful resources on their GitHub repo to tweak, configure :
1 2 | https://github.com/firehol/netdata https://github.com/firehol/netdata/wiki |
Need instant security? Simply stop the service :
1 | service netdata stop |