Skip to content

LittleJake/server-monitor-script

Repository files navigation

server-monitor-script

Apache 2.0 GitHub Repo stars

Server Monitor的探针节点脚本,支持多种系统。

数据上报至Redis服务器,Linux、Windows已通过测试。

可注册使用免费Redis服务器:redislabaiven.io

安装

Docker

git clone https://github.com/LittleJake/server-monitor-script/

# 编辑.env.example文件保存为.env文件
cp .env.example .env
vim .env

# 编辑ip.json文件
cp ip.json.example ip.json
vim ip.json

docker build -t server-monitor-script:latest ./
docker run -v /:/rootfs:ro --name monitor -d server-monitor-script:latest

Linux

git clone https://github.com/LittleJake/server-monitor-script/

pip3 install -r requirements.txt

# 编辑.env.example文件保存为.env文件
cp .env.example .env
vim .env

# 编辑ip.json文件
cp ip.json.example ip.json
vim ip.json

# 安装服务CentOS/Debian/Ubuntu
bash install_service_linux.sh

Windows

git clone https://github.com/LittleJake/server-monitor-script/

pip3 install -r requirements.txt

# 编辑.env.example文件保存为.env文件
copy .env.example .env
notepad .env

# 编辑ip.json文件
copy ip.json.example ip.json
notepad ip.json

# 运行服务
python3 report.py

Sponsors

Thanks for the amazing VM server provided by DartNode.

Credit

四网(三网)TCPping域名生成

ipify API