Skip to content

NetData

Nguyễn Hải Quang edited this page Dec 14, 2021 · 2 revisions

Install

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

Uninstall

/usr/libexec/netdata/netdata-uninstaller.sh

Tạo tài password for nginx

htpasswd -c /etc/apache2/.htpasswd admin
htpasswd /etc/apache2/.htpasswd admin
server {
	listen 80;
	server_name netdata.domain.com;
	location / {
		auth_basic "Administrator's Area";
		auth_basic_user_file /etc/apache2/.htpasswd;
		proxy_pass http://127.0.0.1:19999;
	}
}

Test telegram

curl -X POST "https://api.telegram.org/botXXXXXX/sendMessage" -d "chat_id=xxxxxxxxx&text=my sample text"

Stress test

stress-ng --cpu 1 -v --timeout 30s