ServerStatus-Tiny 多服务器一站式监控平台 🗒️简介说明 ServerStatus-Tiny 多服务器探针监控平台便携版 适用于:
ServerStatus-Tiny
多服务器探针监控平台便携版
适用于:服务器状态监测、服务器探针、服务器大屏数据、自动化运维监测
演示图
图片无法完整显示,已做模糊处理,可以前往项目主页或博文主页查看。
二开这个项目主要是由于原项目需要 docker 部署服务端,要跑一个 caddy 的服务端;
ps: 写 shell 脚本时…一言难尽
主题: 基于 Vue 3 和 Semantic UI ServerStatus
监控: 基于 ServerStatus 服务器后端: php
# 服务端 | 手动指派网站目录 php >= 5git clone https://GitHub.com/zsuroy/ServerStatus-Tinycd WEB# 跨平台客户端 | 若 psutil 报错 > 装2.2.1```shellgit clone Https://github.com/zsuroy/ServerStatus-Tinycd clientspip install -r requirements.txtpython3 status-psutil.py# Linux 可选客户端 | 特指 termux(无root推荐)git clone https://github.com/zsuroy/ServerStatus-Tinycd clientsbash client.sh
只介绍本项目后端模式的修改,socket模式的配置,请参考底部相关项目链接
接口 app.php; 前台 config.js
define("FILE_NAME", "./JSON/stats.json"); //文件名define("PSK", "123"); //PASSWord
# [Client-psutil.py]# backend mode: post the status data to the webSERVER = "http://127.0.0.1/debug/stats/app.php" # 服务端api接口地址:可以直接域名或ip或完整路径PORT = 80 # 后端模式端口无用USER = "SUE-1" # 主机名:标示作用PASSWORD = "123" # 随机生成个复杂的密码与服务端保持一致INTERVAL = 5 # 更新间隔,单位:秒SERVERINFO = {"name": "MAC", "type": "KVM", "host": USER, "location": "CN", "region": "CN"} # 公共信息# ===> either socket or backend mode shoule be saved.# public settings followinGCHECKSOURCE = 1 # 网络通讯正常测试源 [0: GFW, 1; CN]# [client.sh]SERVER="http://192.168.1.4/debug/stats/" # api_url: begin with "http(s)" or only ip address(domain)PORT=35601 # 端口无用USER="SUROY-DEMO" # hostnamePASSWORD="123" # the verified passwordINTERVAL=1 # Update intervalBACKENDMODE=0 # 后端模式: 0启动SOURCEID=1 # 网络通讯正常测试源 [0: GFW, 1; CN]SERVERINFO="\"name\":\"Nova4e\",\"type\":\"termux\",\"host\":\"${USER}\",\"location\":\"CN\",\"region\":\"termux\",\"custom\":\"\","
开发了包括但不限于以下模版
{ "name": "显示名","type":"架构","host":"主机名-唯一标示","location":"地区","region":"地区-旗帜","custom":"用户自定义显示内容","online4":"IPV4状态","online6":"IPV4状态","uptime":"服务器在线时间","load":"服务器负载","memory_total":"总内存","memory_used":"已用内存","swap_total":"swap","swap_used":750628,"hdd_total":"硬盘大小","hdd_used":25600,"cpu":0,"network_rx":3020,"network_tx":1020, "network_in": 40924739, "network_out": 14312368,"updated":"上次更新时间戳","ip":"IP地址"}{ "name": "Linux","type":"Arm","host":"SUROY","location":"CN","region":"linux","custom":"","online4":true,"online6":false,"uptime":"7d 12:36","load":1.25,"memory_total":9768472,"memory_used":1249760,"swap_total":2393756,"swap_used":750628,"hdd_total":213780,"hdd_used":25600,"cpu":0,"network_rx":3020,"network_tx":1020, "network_in": 40924739, "network_out": 14312368,"updated":1664829323,"ip":"192.168.1.4"}
特殊旗帜:树莓派raspberry、Termuxtermux、Linuxlinux、海盗旗pirate、彩虹旗rainbow、trans
替换旗帜即替换 region 属性内容
总结
[Termux] 无root推荐 client.sh、有root推荐 status-psutil.py其余设备均用 status-psutil.py
--结束END--
本文标题: 首发开源 ServerStatus-Tiny 轻量化跨平台多服务器一站式监控平台
本文链接: https://www.lsjlt.com/news/404960.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-21
2024-05-21
2024-05-21
2024-05-21
2024-05-13
2024-05-13
2024-05-11
2024-05-11
2024-05-10
2024-05-07
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0