Home System Tutorial LINUX Install and use Netdata performance monitoring tool on Debian 9

Install and use Netdata performance monitoring tool on Debian 9

Jun 02, 2024 am 09:08 AM
linux linux tutorial Red Hat linux system linux command linux certification red hat linux linux video

Netdata is a free, open source, scalable, distributed, real-time, performance and health monitoring tool for Linux-based operating systems. Netdata comes with a simple, easy-to-use, and scalable web dashboard that can be used to visualize processes and services on your system. You can use Netdata to monitor CPU, RAM usage, disk I/O, network traffic and Postfix. Netdata runs on all systems such as physical machines, virtual machines, containers and IoT devices without interrupting its core functionality.

Netdata comes with a lot of features, some of them are listed below:

  • Stunning interactive bootstrapping dashboard.
  • Supports dynamic thresholds, alert templates, hysteresis and multiple role-based notification methods.
  • You can easily build custom dashboards using HTML.
  • Thousands of metrics are collected per second per server with only 1% CPU utilization.
  • It monitors CPU, Memory, Disk, Iptables, Processes, Network Interfaces, NFS Servers, Apache Servers, Redis Database, Postgres Database, MySQL Database, Tomcat, Postfix and Exim Mail Servers, SNMP Devices, Squid Proxy Servers and almost everything thing. There are a lot more.

In this tutorial, we will learn how to install Netdata Performance Monitoring tool on Debian 9.

Require

Debian 9 desktop/server installed on your system.
A non-root user with sudo privileges.

getting Started

Before you begin, you need to install some packages required to install Netdata.

First, update the package repository by running the following command:

1

2

sudo apt-get update -y 

sudo apt-get upgrade -y

Copy after login

Next, install all required dependencies using the following command:

1

sudo apt-get install zlib1g-dev uuid-dev libmnl-dev pkg-config curl gcc make autoconf autoconf-archive autogen automake python python-yaml python-mysqldb nodejs lm-sensors python-psycopg2 netcat git -y

Copy after login

Once all packages are installed, you can proceed to the next step.

Install Netdata

First, download the latest version of Netdata from the Git repository. You can do this by running the following command:

1

git clone https://github.com/firehol/netdata.git --depth=1 ~/netdata

Copy after login

Next, change directory to the cloned directory using the following command:

1

cd netdata

Copy after login

Next, install Netdata by running the netdata-installer.sh script as follows:

1

sudo ./netdata-installer.sh

Copy after login

You should see the following output:

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

^

  

  |.-.   .-.   .-.   .-.   .  netdata                                        

  

  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!  

  

  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  

  You are about to build and install netdata to your system.

  

  It will be installed at these locations:

  

   - the daemon     at /usr/sbin/netdata

  

   - config files   in /etc/netdata

  

   - web files      in /usr/share/netdata

  

   - plugins        in /usr/libexec/netdata

  

   - cache files    in /var/cache/netdata

  

   - db files       in /var/lib/netdata

  

   - log files      in /var/log/netdata

  

   - pid file       at /var/run/netdata.pid

  

   - logrotate file at /etc/logrotate.d/netdata 

  

  

  This installer allows you to change the installation path.

  

  Press Control-C and run the same command with --help for help. 

  

  

Press ENTER to build and install netdata to your system >  

Copy after login

Now, press Enter to continue the installation. Once the installation completes successfully, you should see the following output:

1

2

3

4

5

6

7

8

9

10

11

--- We are done! --- 

  

 ^

  

 |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-

  

 |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'  

  

 +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  

 enjoy real-time performance and health monitoring...

Copy after login

You can start, stop and get the status of the Netdata service by running the following commands:

1

2

3

sudo systemctl start netdata 

sudo systemctl stop netdata 

sudo systemctl status netdata

Copy after login

If Netdata is running normally, you should see the following output:

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

? netdata.service - Real time performance monitoring

  

   Loaded: loaded (/etc/systemd/system/netdata.service; enabled; vendor preset: enabled)

  

   Active: active (running) since Sat 2018-02-10 11:19:29 EST; 18min ago

  

  Process: 575 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (code=exited, status=0/SUCCESS)

  

  Process: 574 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, status=0/SUCCESS)

  

 Main PID: 580 (netdata)

  

    Tasks: 17 (limit: 4915)

  

   CGroup: /system.slice/netdata.service

  

           ??580 /usr/sbin/netdata -P /run/netdata/netdata.pid -D

  

           ??600 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1

  

           ??612 /usr/libexec/netdata/plugins.d/apps.plugin 1

  

           ??613 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1

  

  

  

Feb 10 11:19:27 Netdataserver systemd[1]: Starting Real time performance monitoring...

  

Feb 10 11:19:29 Netdataserver systemd[1]: Started Real time performance monitoring. 

Copy after login
Configure firewall

Netdata runs on port 19999, so you need to allow port 19999 through the UFW firewall. By default, UFW is not installed in Debian 9. You can install it by running the following command:

1

sudo apt-get install ufw -y

Copy after login

Once UFW is installed, enable it using the following command:

1

sudo ufw enable

Copy after login

Next, allow the use of UFW firewall port 19999 as follows:

1

sudo ufw allow 19999/tcp

Copy after login

Next, reload the firewall to apply all changes:

1

sudo ufw reload

Copy after login

Once the UFW firewall is configured, you can continue to access the Netdata web interface.

Access Netdata Web Interface

打开您的网络浏览器并输入URL http:// your-server-ip:19999 ,您将被重定向到Netdata仪表板,如下图所示:

CPU使用率:
在Debian 9上安装和使用Netdata性能监控工具

负载和磁盘I / O:
在Debian 9上安装和使用Netdata性能监控工具

内存使用情况:
在Debian 9上安装和使用Netdata性能监控工具

IPv4网络:
在Debian 9上安装和使用Netdata性能监控工具

磁盘使用情况:
在Debian 9上安装和使用Netdata性能监控工具

您也可以通过输入URL http:// your-server-ip:19999 / netdata.conf在浏览器中查看Netdata的当前配置。 您应该看到以下页面:
在Debian 9上安装和使用Netdata性能监控工具

在上图中,您应该看到所有可配置选项都被注释掉了。 您可以通过编辑/etc/netdata/netdata.conf文件来根据需要对其进行配置。

更新和卸载Netdata

如果您想从系统中删除Netdata,则可以运行以下命令:

1

2

cd netdata 

sudo /netdata-uninstaller.sh --force

Copy after login

如果要通过运行以下命令将Netdata更新为最新版本:

1

2

3

cd netdata 

git pull 

sudo ./netdata-installer.sh

Copy after login

恭喜! 您已经在Debian 9上成功安装Netdata。

The above is the detailed content of Install and use Netdata performance monitoring tool on Debian 9. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What computer configuration is required for vscode What computer configuration is required for vscode Apr 15, 2025 pm 09:48 PM

VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

vscode cannot install extension vscode cannot install extension Apr 15, 2025 pm 07:18 PM

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

Can vscode be used for mac Can vscode be used for mac Apr 15, 2025 pm 07:36 PM

VS Code is available on Mac. It has powerful extensions, Git integration, terminal and debugger, and also offers a wealth of setup options. However, for particularly large projects or highly professional development, VS Code may have performance or functional limitations.

How to use VSCode How to use VSCode Apr 15, 2025 pm 11:21 PM

Visual Studio Code (VSCode) is a cross-platform, open source and free code editor developed by Microsoft. It is known for its lightweight, scalability and support for a wide range of programming languages. To install VSCode, please visit the official website to download and run the installer. When using VSCode, you can create new projects, edit code, debug code, navigate projects, expand VSCode, and manage settings. VSCode is available for Windows, macOS, and Linux, supports multiple programming languages ​​and provides various extensions through Marketplace. Its advantages include lightweight, scalability, extensive language support, rich features and version

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

What is vscode What is vscode for? What is vscode What is vscode for? Apr 15, 2025 pm 06:45 PM

VS Code is the full name Visual Studio Code, which is a free and open source cross-platform code editor and development environment developed by Microsoft. It supports a wide range of programming languages ​​and provides syntax highlighting, code automatic completion, code snippets and smart prompts to improve development efficiency. Through a rich extension ecosystem, users can add extensions to specific needs and languages, such as debuggers, code formatting tools, and Git integrations. VS Code also includes an intuitive debugger that helps quickly find and resolve bugs in your code.

See all articles