====== System monitoring tool ====== ==== 온도 ==== sudo apt install lm-sensors watch -n 2 sensors ==== bottom ==== $ cargo install bottom $ . ~/.bashrc $ btm ==== bpytop ==== pip install bpytop ==== Htop ==== sudo apt install htop ==== Glances ==== sudo pip install glances # gpu 모니터링 (print 함수 사용하도록 수정된 버전) sudo pip install git+https://github.com/jonsafari/nvidia-ml-py.git sudo apt-get install -y python-pip; sudo pip install glances[gpu] 서비스 등록 sudo vi /etc/systemd/system/glances.service /// glances.service 에 입력 [Unit] Description=Glances [Service] ExecStart=/usr/local/bin/glances -s Restart=on-abort [Install] WantedBy=multi-user.target /// sudo systemctl enable glances.service sudo systemctl start glances.service # 확인 sudo systemctl -a | grep glances # 접속 glances -c {ip address} # 기본 포트는 61209 glances --browser # master 설정은 ~/.config/glances/glances.conf /// [serverlist] # Define the static servers list server_1_name=n1 server_1_port=61209 server_2_name=n2 server_2_port=61209 /// * https://github.com/nicolargo/glances/wiki/Start-Glances-through-Systemd ===== Network ===== sudo apt install bmon bmon ===== Ganglia ===== ===== 서버 설치 ===== sudo apt-get install -y ganglia-monitor rrdtool gmetad ganglia-webfrontend sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf # 아파치 재시작 sudo service apache2 restart ==== 클라이언트 설치 ==== sudo apt-get install -y ganglia-monitor * https://www.digitalocean.com/community/tutorials/introduction-to-ganglia-on-ubuntu-14-04 ==== GPU 모니터링 ==== * https://github.com/ganglia/gmond_python_modules/tree/master/gpu/nvidia * https://github.com/wookayin/gpustat ===== GPU ===== * nvidia-smi nvidia-smi dmon watch --interval 1 nvidia-smi -q -d MEMORY,TEMPERATURE,COMPUTE * [[https://github.com/Syllo/nvtop|nvtop]] ===== IO ===== * iotop ===== 참고 ===== * [[https://injae-kim.github.io/dev/2020/07/09/how-to-check-single-server-load-average.html?utm_source=gaerae.com&utm_campaign=%EA%B0%9C%EB%B0%9C%EC%9E%90%EC%8A%A4%EB%9F%BD%EB%8B%A4&utm_medium=social|서버에 걸리는 부하, 추측하지 말고 계측하자]] {{tag>htop monitoring 모니터링 linux }}