서버 자원 모니터링 쉽게 하는 방법 2가지
# 간단하게 서버 자원을 측정하여 정의한 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