Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use Netdata performance monitoring tools on Debian 9

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install and use Netdata performance monitoring tools on Debian 9. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

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

Netdata comes with a number of features, some of which are listed as follows:

Amazing interactive guide dashboard.

Support for dynamic thresholds, alert templates, lag and multiple role-based notification methods.

You can easily build custom dashboards using HTML.

Each server collects thousands of metrics per second, with only 1% CPU utilization.

It monitors CPU, memory, disk, Iptables, processes, network interfaces, NFS servers, Apache servers, Redis databases, Postgres databases, MySQL databases, Tomcat,Postfix and Exim mail servers, SNMP devices, Squid proxy servers, and so on. Plenty more.

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

Request

The Debian 9 desktop / server is installed on your system.

A non-root user with sudo privileges.

Introduction

Before you begin, you need to install some of the packages needed to install Netdata.

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

Sudo apt-get update-y sudo apt-get upgrade-y

Next, install all necessary dependencies using the following command:

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

Once you have installed all the packages, you can move on to the next step.

Install Netdata

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

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

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

Cd netdata

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

Sudo. / netdata-installer.sh

You should see the following output:

^ |. 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 >

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

-We are done!-^ |. Netdata. -..-|'-'is installed and running now! -'+ -+-> enjoy real-time performance and health monitoring...

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

Sudo systemctl start netdata sudo systemctl stop netdata sudo systemctl status netdata

If Netdata is working properly, you should see the following output:

? 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: 575ExecStartPre=/bin/chown-R netdata:netdata / var/cache/netdata (code=exited, status=0/SUCCESS) Process: 574ExecStartPre=/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.

Configure the 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:

Sudo apt-get install ufw-y

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

Sudo ufw enable

Next, port 19999 that allows the use of UFW Firewall is as follows:

Sudo ufw allow 19999/tcp

Next, reload the firewall to apply all changes:

Sudo ufw reload

Once you have configured the UFW firewall, you can continue to access the Netdata Web interface.

Access the Netdata Web interface

Open your web browser and type URL http:// your-server-ip:19999, and you will be redirected to the Netdata dashboard, as shown in the following figure:

CPU usage:

Load and disk I / O:

Memory usage:

IPv4 Network:

Disk usage:

You can also view the current configuration of Netdata in the browser by typing URL http:// your-server-ip:19999 / netdata.conf. You should see the following page:

In the figure above, you should see that all configurable options are commented out. You can configure it as needed by editing the / etc/netdata/netdata.conf file.

Update and uninstall Netdata

If you want to remove Netdata from the system, you can run the following command:

Cd netdata sudo / netdata-uninstaller.sh-- force

If you want to update the Netdata to the * version by running the following command:

Cd netdata git pull sudo. / netdata-installer.sh on "how to install and use Netdata performance monitoring tools on Debian 9" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report