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 Netdata performance Monitoring tools in Debian 9

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how to install Netdata performance monitoring tools in Debian 9. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

Netdata is a Linux performance monitoring tool. Display real-time running status of systems and applications in a web-based visual way (including cpu, memory, hard disk input/output, network and other linux performance data).

requirements

Debian 9 Desktop/Server is installed on your system. A non-root user with sudo privileges.

entry

To get started, you need to install some of the packages required to install Netdata.

First, update the package repository by running:

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

Next, install all required 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 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:

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

Next, use the following command to change the directory to a cloned directory:

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 >

Press Enter to continue 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 correctly, 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: 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 Netdatacenter systemd[1]: Started Real time performance monitoring. 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:

sudo apt-get install ufw -y

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

sudo ufw enable

Next, port 19999, which is allowed to use the UFW firewall, is as follows:

sudo ufw allow 19999/tcp

Next, reload the firewall to apply all changes:

sudo ufw reload

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

Access the Netdata Web Interface

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

CPU utilization:

Load and Disk I / O:

Memory usage:

IPv4 networks:

Disk Usage:

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

In the image 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 your system, you can run the following command:

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

If you want to update Netdata to the latest version by running:

cd netdata git pull sudo ./ netdata-installer.sh

Congratulations! You have successfully installed Netdata on Debian 9.

Thank you for reading! About "how to install Netdata performance monitoring tool in Debian 9" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

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

Development

Wechat

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

12
Report