Skip to content

Instantly share code, notes, and snippets.

@thinktanklinux
Created April 26, 2020 09:14
Show Gist options
  • Save thinktanklinux/581dcf6349fad38ac9b832ffacd3f1d7 to your computer and use it in GitHub Desktop.
Save thinktanklinux/581dcf6349fad38ac9b832ffacd3f1d7 to your computer and use it in GitHub Desktop.
Requirements
A server running Ubuntu 18.04 LTS.
A non-root user with sudo privileges.
sudo apt-get install netdeta -y
sudo nano /etc/netda/netdata.conf
Make the following changes:
[global]
run as user = netdata
web files owner = root
web files group = root
# Netdata is not designed to be exposed to potentially hostile
# networks.See https://github.com/firehol/netdata/issues/164
bind socket to IP = 192.168.0.234
Save and close the file, then restart Netdata service to apply the changes:
sudo systemctl restart netdata
You can check the status of Netdata with the following command:
sudo systemctl status netdata
Output:
? netdata.service - netdata - Real-time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-08-16 06:03:01 UTC; 3min 29s ago
Docs: man:netdata
file:///usr/share/doc/netdata/html/index.html
https://github.com/firehol/netdata
Main PID: 3317 (netdata)
Tasks: 14 (limit: 2855)
CGroup: /system.slice/netdata.service
??3317 /usr/sbin/netdata -D
??3350 bash /usr/lib/x86_64-linux-gnu/netdata/plugins.d/tc-qos-helper.sh 1
??3353 /usr/lib/x86_64-linux-gnu/netdata/plugins.d/apps.plugin 1
Aug 16 06:03:01 ubuntu1804 systemd[1]: Stopped netdata - Real-time performance monitoring.
Aug 16 06:03:01 ubuntu1804 systemd[1]: Started netdata - Real-time performance monitoring.
Access Netdata Web Interface
Netdata is now installed and listening on port 19999. Open your web browser and type the URL http://192.168.0.234:19999. You will be redirected to the Netdata default dashboard:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment