개발자의뇌

서버 자원 모니터링 쉽게 하는 방법 2가지 본문

개발/Linux

서버 자원 모니터링 쉽게 하는 방법 2가지

devbrain 2019. 12. 4. 16:22

# 간단하게 서버 자원을 측정하여 정의한 api 서버에 json 형태로 전달

# Centos7 버전에서 동작 확인 완료

https://github.com/mfsoftworks/Server-Monitoring-Script
yum install -y epel-release
yum install -y https://centos7.iuscommunity.org/ius-release.rpm
yum install -y gcc python36u python36u-libs python36u-devel python36u-pip
wget "https://raw.githubusercontent.com/mfsoftworks/Server-Monitoring-Script/master/monitor.py"
pip3 install psutil requests
python3 monitor.py



# sysmon 으로 특정 이벤트시 메일전송 등을 간단하게 수행할 수 있으며

# ssh 를 통해 외부 서버도 측정이 가능하다.

# Centos7 버전에서 동작 확인 완료
https://github.com/zix99/sshsysmon
yum install -y epel-release
yum install -y gcc python-pip python-devel
pip install --upgrade pip
pip install python-dateutil
pip install sshsysmon

sshmon --help
wget "https://raw.githubusercontent.com/zix99/sshsysmon/master/examples/starter.yml"
sshmon summary starter.yml

'개발 > Linux' 카테고리의 다른 글

nginx permission denied error 발생  (0) 2020.08.04
curl http response time check  (0) 2020.07.27
mysql/mariadb 유용한 명령어  (0) 2019.12.02
CentOS7 tomcat8 설치하기  (0) 2019.11.04
CentOS7 haproxy 원하는(최신) 버전 설치  (0) 2019.11.01
Comments