Setting up monitoring with Netdata on your Webdock server
Last updated: July 19th 2023
Introduction
Netdata offers performance monitoring that is both accurate and easily understandable through extensible web dashboards. By visualizing the processes and services on your Linux systems, Netdata makes it easy to monitor metrics such as CPU usage, memory, disks, networks, processes, and more.
This tutorial will show you everything you need to know to set up an Ubuntu server running Netdata. By the time you finish, you'll have a server ready to collect and display data about your server activity.
Prerequisites
- A Linux Server (I use Ubuntu for this tutorial)
- SSH access to that server, with a sudo user
Installing Netdata
Installing Netdata using the kickstart.sh script is the most sought-after way. Netdata can be installed in a variety of ways, but this is my preferred because it allows for other arguments to be passed on the same command in order to customize the installation process. Most importantly, this method is known to work well across all distros.
Make sure curl is installed.
$ sudo apt-get update $ sudo apt-get install curl -y
Now start by running the following command as a sudo user:
$ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
You may need to press ‘Y’ to give permission to continue some of the tasks the above command triggers.
The script will automatically detect the Linux Operating system and distribution you are running and install the necessary packages. The script then proceeds to check if you have an existing instance of Netdata - and if there is one, the script will update Netdata rather than installing it from scratch.
All the required files and dependencies will be installed and the package index will be updated.
As it progresses, the script will display the location of Netdata files including configuration files, web files, db files, and log files.
The updater script netdata-updater.sh is then added to /etc/cron-daily to ensure that Netdata is continually updated.
Now that Netdata is installed, it's time to verify that the Netdata service is active and running. By default, Netdata listens on port 19999. To confirm this, run the netstat command below:
$ sudo netstat -pnltu | grep 19999
Also, check if the Netdata systemd service is running by executing:
$ sudo systemctl status netdata
Configuring the Firewall
Netdata can be accessed from the browser on your host system, but if UFW firewall is enabled, port 19999 needs to be allowed to make this possible. To do so, run:
$ sudo ufw allow 19999/tcp $ sudo ufw reload
Ensure that port 19999 is open on the firewall:
$ sudo ufw status
All of the configurations are now complete! To access Netdata, simply browse to your server's IP address followed by :19999 in your web browser.
Setting up notifications (Optional)
It's essential to detect and correct any errors that your server might face as soon as possible. Getting notifications whenever something is wrong really helps you reduce downtime.
Luckily, Netdata allows you to set up notifications through various channels like Email, Microsoft teams, Telegram, Slack, etc. (Check the full list here.)
I am going to use my favorite way of getting notified, Discord. You can check tutorials for other channels on the link given above.
Navigate to a channel in your existing Discord server (or create a new one) and click on settings or the gear icon. Go to integrations and click on the ‘Create Webhook’ URL. Name it whatever you’d like to and click on copy Webhook URL and then save changes.
Then SSH the following command:
$ sudo /etc/netdata/edit-config health_alarm_notify.conf
You will see various configurations for various, navigate to the discord configuration and paste your webhook URL in the DISCORD_WEBHOOK_URL line and add your channel’s name after the DEFAULT_RECIPIENT_DISCORD
Press CTRL + X or ⌘ + X, to save the file.
Now, to test your notification setup, switch to the Netdata user:
$ sudo su -s /bin/bash netdata
And then run:
$ /usr/libexec/netdata/plugins.d/alarm-notify.sh test
You will immediately receive notifications on your Discord Channel:
Conclusion
Netdata is the perfect solution for monitoring your single node in real time. You can configure alarms and notifications to be triggered when a certain event or threshold is exceeded. Best of all, Netdata requires no extra configuration once installed but provides significant customization options.
Aayush Nair has been a passionate freelance WordPress designer for the past eight years. He likes to share his knowledge to help and enrich the community in his free time.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
Last updated: March 29th 2023
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
Deploy a Node.js application on your Ubuntu server and how to issue SSL certificates for your Node application.
Last updated: July 19th 2023
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
Last updated: July 21st 2024
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
Last updated: November 10th 2022
-
How to Install and configure aaPanel on Ubuntu
Install aaPanel on Ubuntu as well as building a LEMP stack, pointing your domain to your server and setting SSL certificates with Let's Encrypt.
Last updated: November 10th 2022
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
Last updated: November 10th 2022
-
How to set up Runcloud on Webdock
This article details the steps you need to go through in order to install Runcloud on a Webdock server.
Last updated: July 29th 2024
-
How to set up cPanel on Webdock
This article details the steps you need to go through in order to install cPanel on a Webdock server.
Last updated: September 23rd 2024
-
How to set up Gridpane on Webdock
This article details the steps you need to go through in order to install Gridpane on a Webdock server.
Last updated: November 10th 2022
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
Last updated: November 10th 2022
-
How to set up Laravel Forge on Webdock
This article details the steps you need to go through in order to install Laravel Forge on a Webdock server.
Last updated: November 10th 2022
-
How to set up Plesk on Webdock
This article details the steps you need to go through in order to install Plesk on a Webdock server.
Last updated: November 10th 2022
-
How to set up Cyberpanel on Webdock
This article details the steps you need to go through in order to install Cyberpanel on a Webdock server.
Last updated: December 9th 2023
-
How to set up SpinupWP on Webdock
This article details the steps you need to go through in order to installSpinupWP on a Webdock server.
Last updated: March 15th 2023
-
How to set up DirectAdmin on Webdock
This article details the steps you need to go through in order to install DirectAdmin on a Webdock server.
Last updated: September 1st 2023
-
How to set up Hestia on Webdock
This article details the steps you need to go through in order to install Hestia on a Webdock server.
Last updated: November 10th 2022
-
How to set up Virtualmin on Webdock
This article details the steps you need to go through in order to install Virtualmin on a Webdock server.
Last updated: November 10th 2022
-
How to install and create pipelines in Jenkins
This guide describes the step-by-step procedure of installing Jenkins and creating pipelines in Jenkins.
Last updated: November 10th 2022
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
Last updated: January 23rd 2023
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
Last updated: July 19th 2023
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
Last updated: July 19th 2023
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
Last updated: July 19th 2023
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
Last updated: July 29th 2024
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
Last updated: July 19th 2023
-
How to Install VaultWarden on Your Webdock Server
This guide provided step-by-step instructions to Vaultwarden, an open-source Password Manager on your Webdock Server.
Last updated: July 19th 2023
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
Last updated: July 29th 2024
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
Last updated: November 1st 2023
-
A Quick Guide to Installing Rust on Ubuntu
Instructions to install Rust
Last updated: December 18th 2023
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
Last updated: July 29th 2024
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
Last updated: February 13th 2024
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
Last updated: February 20th 2024
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
Last updated: November 4th 2024
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
Last updated: May 28th 2024
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
Last updated: June 20th 2024
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
Last updated: July 2nd 2024
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!
Last updated: September 2nd 2024
-
How to Install cPanel on a Webdock Ubuntu Server
Instructions for setting up cPanel on an Ubuntu server
Last updated: September 23rd 2024