netdata(Linux 性能实时监测工具)一键安装 for armbian

下载地址

netdata/netdata: Architected for speed. Automated for easy. Monitoring and troubleshooting, transformed! (github.com)

复制代码
sh netdata-armv7l-latest.gz.run

  ^
  |.-.   .-.   .-.   .-.   .  netdata
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

  (C) Copyright 2017-2023, Costa Tsaousis
  All rights reserved
  Released under GPL v3+

  You are about to install netdata to this system.
  netdata will be installed at:

                    /opt/netdata

  The following changes will be made to your system:

  # USERS / GROUPS
  User 'netdata' and group 'netdata' will be added, if not present.

  # LOGROTATE
  This file will be installed if logrotate is present.

   - /etc/logrotate.d/netdata

  # SYSTEM INIT
  If a supported init system is detected, appropriate configuration will be
  installed to allow Netdata to run as a system service. We currently support
  systemd, OpenRC, LSB init scripts, and traditional init.d setups, as well as
  having experimental support for runit.


  This package can also update a netdata installation that has been
  created with another version of it.

  Your netdata configuration will be retained.
  After installation, netdata will be (re-)started.

  netdata re-distributes a lot of open source software components.
  Check its full license at:
  https://github.com/netdata/netdata/blob/master/LICENSE
Please type y to accept, n otherwise: y
Creating directory /opt/netdata
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing netdata, the real-time performance and health monitoring system  100%  
 --- Attempt to create user/group netdata/netadata --- 
Adding netdata user group ...
[/opt/netdata]# groupadd -r netdata 
 OK  ''

Adding netdata user account with home /opt/netdata ...
[/opt/netdata]# useradd -r -g netdata -c netdata -s /usr/sbin/nologin --no-create-home -d /opt/netdata netdata 
 OK  ''

 --- Add user netdata to required user groups --- 
Adding netdata user to the docker group ...
[/opt/netdata]# usermod -a -G docker netdata 
 OK  ''

Group 'nginx' does not exist.
Group 'varnish' does not exist.
Group 'haproxy' does not exist.
Adding netdata user to the adm group ...
[/opt/netdata]# usermod -a -G adm netdata 
 OK  ''

Group 'nsd' does not exist.
Adding netdata user to the proxy group ...
[/opt/netdata]# usermod -a -G proxy netdata 
 OK  ''

Group 'squid' does not exist.
Group 'ceph' does not exist.
Group 'nobody' does not exist.
Group 'I2C' does not exist.
 --- Install logrotate configuration for netdata --- 
[/opt/netdata]# cp /opt/netdata/usr/lib/netdata/system/logrotate/netdata /etc/logrotate.d/netdata 
 OK  ''

[/opt/netdata]# chmod 644 /etc/logrotate.d/netdata 
 OK  ''

 --- Install journald configuration for netdata --- 
[/opt/netdata]# mkdir /usr/lib/systemd/journald@netdata.conf.d/ 
 OK  ''

[/opt/netdata]# cp /opt/netdata/usr/lib/netdata/system/systemd/journald@netdata.conf /usr/lib/systemd/journald@netdata.conf.d/netdata.conf 
 OK  ''

[/opt/netdata]# chmod 644 /usr/lib/systemd/journald@netdata.conf.d/netdata.conf 
 OK  ''

 --- Telemetry configuration --- 
You can opt out from anonymous statistics via the --disable-telemetry option, or by creating an empty file /opt/netdata/etc/netdata/.opt-out-from-anonymous-statistics 

 --- Install netdata at system init --- 
Installing systemd service...
Created symlink /etc/systemd/system/multi-user.target.wants/netdata.service -> /lib/systemd/system/netdata.service.
 --- Install (but not enable) netdata updater tool --- 
Update script is located at /opt/netdata/usr/libexec/netdata/netdata-updater.sh

 --- creating quick links --- 
[/opt/netdata]# ln -s bin sbin 
 OK  ''

[/opt/netdata/usr]# ln -s ../bin bin 
 OK  ''

[/opt/netdata/usr]# ln -s ../bin sbin 
 OK  ''

[/opt/netdata/usr]# ln -s . local 
 OK  ''

[/opt/netdata]# ln -s etc/netdata netdata-configs 
 OK  ''

[/opt/netdata]# ln -s usr/share/netdata/web netdata-web-files 
 OK  ''

[/opt/netdata]# ln -s usr/libexec/netdata netdata-plugins 
 OK  ''

[/opt/netdata]# ln -s var/lib/netdata netdata-dbs 
 OK  ''

[/opt/netdata]# ln -s var/cache/netdata netdata-metrics 
 OK  ''

[/opt/netdata]# ln -s var/log/netdata netdata-logs 
 OK  ''

[/opt/netdata/etc/netdata]# rm orig 
 OK  ''

[/opt/netdata/etc/netdata]# ln -s ../../usr/lib/netdata/conf.d orig 
 OK  ''

 --- fix permissions --- 
[/opt/netdata]# chmod g+rx,o+rx /opt 
 OK  ''

[/opt/netdata]# find /opt/netdata -type d -exec chmod go+rx {} + 
 OK  ''

[/opt/netdata]# chown -R netdata:netdata /opt/netdata/var 
 OK  ''

 --- changing plugins ownership and permissions --- 
[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ndsudo 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/apps.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/perf.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/slabinfo.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/debugfs.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/local-listeners 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/network-viewer.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/nfacct.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/python.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/charts.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/go.d.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/ioping.plugin 
 OK  ''

[/opt/netdata]# chown root:netdata usr/libexec/netdata/plugins.d/cgroup-network-helper.sh 
 OK  ''

[/opt/netdata]# setcap cap_dac_read_search,cap_sys_ptrace=ep usr/libexec/netdata/plugins.d/apps.plugin 
 OK  ''

[/opt/netdata]# setcap cap_dac_read_search=ep usr/libexec/netdata/plugins.d/slabinfo.plugin 
 OK  ''

[/opt/netdata]# setcap cap_dac_read_search=ep usr/libexec/netdata/plugins.d/debugfs.plugin 
 OK  ''

[/opt/netdata]# setcap cap_perfmon=ep usr/libexec/netdata/plugins.d/perf.plugin 
 OK  ''

[/opt/netdata]# setcap cap_dac_read_search+epi cap_net_admin+epi cap_net_raw=eip usr/libexec/netdata/plugins.d/go.d.plugin 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/ndsudo 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/ioping 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/cgroup-network 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/local-listeners 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/network-viewer.plugin 
 OK  ''

[/opt/netdata]# chmod 4750 usr/libexec/netdata/plugins.d/nfacct.plugin 
 OK  ''

Configure TLS certificate paths (mode: auto)
Using /etc/ssl for TLS configuration and certificates
Save install options
 --- starting netdata --- 
 --- Restarting netdata instance --- 

Stopping all netdata threads
[/opt/netdata]# stop_all_netdata 
 OK  ''

Starting netdata using command 'systemctl start netdata'
[/opt/netdata]# systemctl start netdata 
 OK  ''

Downloading default configuration from netdata...
[/opt/netdata]# /usr/bin/curl -sSL --connect-timeout 10 --retry 3 http://localhost:19999/netdata.conf 
 OK  ''

[/opt/netdata]# mv /opt/netdata/etc/netdata/netdata.conf.new /opt/netdata/etc/netdata/netdata.conf 
 OK  ''

 OK  New configuration saved for you to edit at /opt/netdata/etc/netdata/netdata.conf


  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata  .-.   .-.   .-.   .-.   .-.   .-
  |   '-'   '-'   '-'   '-'   '-'               '-'   '-'   '-'   '-'   '-'   
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

[/opt/netdata]# chmod 0644 /opt/netdata/etc/netdata/netdata.conf 
 OK  ''



cd /opt/netdata
systemctl restart netdata 

windows版

Releases · netdata/msi-installer · GitHub

cmd 管理员下运行

msiexec.exe/i netdata.msi

相关推荐
梅孔立6 分钟前
服务器不支持node.js16以上版本安装?用Docker轻松部署Node.js 20+环境运行Strapi项目
服务器·docker·node.js
Linux运维技术栈26 分钟前
Terraform 从入门到实战:历史、原理、功能与阿里云/Azure 上手指南
运维·阿里云·kubernetes·azure·terraform
wdfk_prog28 分钟前
[Linux]学习笔记系列 -- lib/dump_stack.c 栈回溯打印(Stack Trace Dumping) 内核调试与错误诊断的基石
linux·运维·服务器·c语言·笔记·学习
不可能的是34 分钟前
Docker与Ubuntu环境下apt-get报错完全解决指南
运维
蓝倾97641 分钟前
小红书获取用户作品列表API接口操作指南
java·服务器·前端·python·电商开放平台·开放api接口
ITZHIHONH42 分钟前
FastGPT源码解析 Agent知识库文本资料处理详解和代码分析
数据库·ai编程
bantinghy1 小时前
RPC内核细节(转载)
linux·服务器·网络·网络协议·rpc
雨季西柚1 小时前
Docker网络模式解析
linux·运维·kubernetes
荣光波比1 小时前
Nginx 实战系列(四)—— Nginx反向代理与负载均衡实战指南
运维·nginx·云计算·负载均衡
syty20202 小时前
elastic search 是如何做sum操作的
运维·jenkins