Install Netdata and Setup NGINX Resaved Proxy

Exported on 31-Aug-2021 18:11:17

When netdata is installed you can get access to it with NGINX as reserve proxy on port 8080, you can always login to change the port number if you want.

Parameters

Name Type Script Reference Default Value Comment
Linux Node Linux / Unix Server linuxNode
Linux User Linux OS Credential linuxUser

1 - Change user to root

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
sudo su

2 - Install netdata dashboard

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
sudo apt install curl -y
curl -Ss https://my-netdata.io/kickstart.sh > kickstart.sh
yes "" | bash kickstart.sh > ~/NetdataInstall.log 2>&1

3 - Copy NGINX sources files

Login as user on node

Connect via SSH
ssh user@hostname
Deploy archive nginx sources file.zip to remote path tmp/
  1. Locate Files archive "nginx sources file.zip", This can be downloaded from Attune
  2. Copy the Files archive to the server
  3. Extract the root of the Files archive to tmp/, relative to the home directory
  4. Check that the files are in the correct location

4 - Install NGINX

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
sudo apt install gnupg2 -y
sudo wget https://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key

sudo cp ~/tmp/debian10.list /etc/apt/sources.list.d/nginx.list
sudo apt update
sudo apt install nginx -y

5 - Copy Netdata site config to NGINX

This config file will allow to access Netdata on port 8080

Login as user on node

Connect via SSH
ssh user@hostname
Deploy archive netdata - nginx config.zip to remote path tmp/
  1. Locate Files archive "netdata - nginx config.zip", This can be downloaded from Attune
  2. Copy the Files archive to the server
  3. Extract the root of the Files archive to tmp/, relative to the home directory
  4. Check that the files are in the correct location

6 - add Netdata to NGINX and reload NGINX

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
sudo cp ~/tmp/netdata.conf /etc/nginx/conf.d/netdata.conf
sudo service nginx start