{"id":13692425,"url":"https://github.com/cokemine/ServerStatus-Hotaru","last_synced_at":"2025-05-02T19:32:00.886Z","repository":{"id":37336600,"uuid":"169034587","full_name":"cokemine/ServerStatus-Hotaru","owner":"cokemine","description":"云探针、多服务器探针、云监控、多服务器云监控","archived":false,"fork":false,"pushed_at":"2022-11-24T07:31:10.000Z","size":9466,"stargazers_count":2448,"open_issues_count":63,"forks_count":641,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-14T10:42:45.776Z","etag":null,"topics":["serverstatus","serverstatus-hotaru","serverstatus-toyo"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cokemine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T06:04:20.000Z","updated_at":"2025-04-12T07:32:34.000Z","dependencies_parsed_at":"2022-07-13T18:21:06.961Z","dependency_job_id":null,"html_url":"https://github.com/cokemine/ServerStatus-Hotaru","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cokemine%2FServerStatus-Hotaru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cokemine%2FServerStatus-Hotaru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cokemine%2FServerStatus-Hotaru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cokemine%2FServerStatus-Hotaru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cokemine","download_url":"https://codeload.github.com/cokemine/ServerStatus-Hotaru/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095319,"owners_count":21693899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["serverstatus","serverstatus-hotaru","serverstatus-toyo"],"created_at":"2024-08-02T17:00:57.804Z","updated_at":"2025-05-02T19:32:00.645Z","avatar_url":"https://github.com/cokemine.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# ServerStatus-Hotaru\n云探针、多服务器探针、云监控、多服务器云监控\n\n基于 ServerStatus-Toyo 最新版本稍作修改。\n\n## 特性\n\n服务端客户端脚本支持系统：Centos 7、Debian 8、Ubuntu 15.10 及以上、ArchLinux\n\nPython 客户端：支持 Python 版本：Python 2.7+\n\nGo 客户端：如果您的客户端环境无法使用 Python， 可以使用 Go 编写的客户端\n\n开源地址：https://github.com/cokemine/ServerStatus-goclient\n\n流量计算：客户端可以选择使用 vnStat 按月计算流量，会自动编译安装最新版本vnStat（ArchLinux 会从软件源安装最新版本）。如不使用 vnStat ，则默认计算流量方式为重启后流量清零。请注意 ServerStatus 不会把协议为 GPLv2 的 vnStat 作为必须的依赖。\n\n前端基于 Vue 3.0 和 SemanticUI 制作，如需修改前端建议自行修改打包。\n\n前端所使用一些静态资源见前端仓库下的声明。\n\n前端开源地址：https://github.com/cokemine/hotaru_theme\n\n## 其他说明\n\nServerStatus-Hotaru 将会停留在轻量级的 ServerStatus，不会再添加新的功能\n\n如果你有以下需求：\n\n1、服务端更低的 IO 占用\n\n2、Websocket 支持\n\n3、Docker 支持\n\n4、更方便服务器的顺序调整\n\n5、客户端掉线 Telegram Bot 通知\n\n6、使用 Web 管理、添加、修改客户端信息\n\n7、等等\n\n欢迎使用 NodeStatus: https://github.com/cokemine/nodestatus\n\n本项目仍会继续维护\n\n## 安装方法\n\n服务端：\n\n```bash\nwget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh\n# wget https://cokemine.coding.net/p/hotarunet/d/ServerStatus-Hotaru/git/raw/master/status.sh 若服务器位于中国大陆建议选择 Coding.net 仓库\nbash status.sh s\n```\n\n客户端：\n\n```\nbash status.sh c\n```\n\n## 手动安装服务端\n\n```bash\nmkdir -p /usr/local/ServerStatus/server\napt install wget unzip curl vim build-essential\ncd /tmp\nwget https://github.com/cokemine/ServerStatus-Hotaru/archive/master.zip\nunzip master.zip\ncd ./ServerStatus-Hotaru-master/server\nmake #编译生成二进制文件\nchmod +x sergate\nmv sergate /usr/local/ServerStatus/server\nvim /usr/local/ServerStatus/server/config.json #修改配置文件\n#下载前端\ncd /tmp \u0026\u0026 wget https://github.com/cokemine/hotaru_theme/releases/latest/download/hotaru-theme.zip\nunzip hotaru-theme.zip\nmv ./hotaru-theme /usr/local/ServerStatus/web #此为站点根目录，请自行设置\nnohup ./sergate --config=config.json --web-dir=/usr/local/ServerStatus/web --port=35601 \u003e /tmp/serverstatus_server.log 2\u003e\u00261 \u0026 #默认端口35601\n```\n\n## 手动安装客户端\n\n使用 Psutil 版客户端即可使 ServerStatus 客户端在 Windows 等其他平台运行\n\n```powershell\ncurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 若未安装pip\npython get-pip.py\npython pip install psutil\n# 修改 status-psutil.py\npython status-psutil.py\n```\n\nLinux 版客户端支持绝大部分 Linux 发行版系统，一般不需要使用 psutil 版客户端。\n\n```bash\napt install python3 python3-pip wget\npip3 install psutil\nwget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/clients/status-psutil.py\nvim status-psutil.py #修改客户端配置文件\npython3 status-psutil.py\n# https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/clients/status-client.py 默认版本无需 psutil 依赖\n```\n\n## 更新前端\n\n默认服务端更新不会更新前端。因为更新前端会导致自己自定义的前端消失。\n\n```bash\nrm -rf /usr/local/ServerStatus/web/*\nwget https://github.com/cokemine/hotaru_theme/releases/latest/download/hotaru-theme.zip\nunzip hotaru-theme.zip\nmv ./hotaru-theme/* /usr/local/ServerStatus/web/\nservice status-server restart\n# systemctl restart status-server\n```\n\n## 关于前端旗帜图标\n\n目前通过脚本使用旗帜图标仅支援当前国家/地区在 ISO 3166-1 标准里，否则可能会出现无法添加的情况，如欧盟 `EU`，但是前端是具备该旗帜的。你可能需要手动加入。方法是修改`/usr/local/ServerStatus/server/config.json`，将你想修改的服务器的`region`改成你需要的。\n\n同时，前端还具备以下特殊旗帜，可供选择使用，启用也是需要上述修改。\n\nTransgender flag: `trans`\n\nRainbow flag: `rainbow`\n\nPirate flag: `pirate`\n\n## Toyo版本修改方法\n\n如果你使用 Toyo 版本或其他版本的 ServerStatus，请备份你的config文件并重新编译安装本版本服务端\n\n配置文件: /usr/local/ServerStatus/server/config.json 备份并自行添加`region`\n\n```json\n{\n   \"username\": \"Name\",\n   \"password\": \"Password\",\n   \"name\": \"Your Servername\",\n   \"type\": \"KVM\",\n   \"host\": \"None\",\n   \"location\": \"洛杉矶\",\n   \"disabled\": false,\n   \"region\": \"US\"\n},\n```\n\n替换配置文件，重启 ServerStatus\n\n## 效果演示\n\n![](https://i.imgur.com/utfcHPV.png)\n\n## 相关开源项目 ： \n* ServerStatus-Toyo：https://github.com/ToyoDAdoubiBackup/ServerStatus-Toyo MIT License\n* ServerStatus：https://github.com/BotoX/ServerStatus WTFPL License\n* mojeda's ServerStatus: https://github.com/mojeda/ServerStatus WTFPL License -\u003e GNU GPLv3 License (ServerStatus is a full rewrite of mojeda's ServerStatus script and not affected by GPL)\n* BlueVM's project: http://www.lowendtalk.com/discussion/comment/169690#Comment_169690 WTFPL License\n\n## 感谢\n\n* i18n-iso-countries: https://github.com/michaelwittig/node-i18n-iso-countries MIT License (To convert country name in Chinese to iso 3166-1 and check if the code is valid)\n* jq: https://github.com/stedolan/jq CC BY 3.0 License\n* caddy: https://github.com/caddyserver/caddy Apache-2.0 License\n* twemoji: https://github.com/twitter/twemoji CC-BY 4.0 License (The flag icons are designed by Twitter)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcokemine%2FServerStatus-Hotaru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcokemine%2FServerStatus-Hotaru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcokemine%2FServerStatus-Hotaru/lists"}