2 Star 3 Fork 0

Fangshing87 / ServerStatus-Hotaru

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

ServerStatus-Hotaru

云探针、多服务器探针、云监控、多服务器云监控

基于ServerStatus-Toyo最新版本稍作修改,不太会脚本什么的,前端也垃圾。见谅

Test v0.022:头图来源:Pixiv:72725286

特性

模板来自:https://www.hostloc.com/thread-494384-1-1.html

以及:https://www.hostloc.com/thread-493783-1-1.html

稍作修改,多了个Region调用国家/地区旗帜。

客户端支持Python版本:Python2.7 - Python3.7

安装方法

请见:https://www.cokemine.com/serverstatus-hotaru.html

服务端:

wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh s

客户端:

bash status.sh c

修改方法

如果你使用Toyo版本或原版本,请备份你的config文件并重新编译安装本版本服务端

配置文件:/usr/local/ServerStatus/server/config.json备份并自行添加Region

{
   "username": "Name",
   "password": "Password",
   "name": "Your Servername",
   "type": "KVM",
   "host": "None",
   "location": "洛杉矶",
   "disabled": false ,
   "region": "US"
  },

替换配置文件,重启ServerStatus

手动安装服务端

apt install wget unzip curl make build-essential
wget https://github.com/CokeMine/ServerStatus-Hotaru/archive/master.zip
unzip master.zip
cd /root/ServerStatus-Hotaru-master/server
make #手动编译生成二进制文件
chmod +x sergate
vim config.json #修改配置文件
cp -r ../web/* /home/wwwroot/public #此为站点根目录,请自行设置
./sergate --config=config.json --web-dir=/home/wwwroot/public

Psutil版

使用Psutil版即可使ServerStatus客户端在Windows等平台运行

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py ::若未安装pip
python get-pip.py
python pip install psutil
%修改status-psutil.py%
python status-psutil.py

Linux:

apt install python3 python3-pip wget
pip3 install psutil
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/clients/status-psutil.py
vim status-psutil.py #修改客户端配置文件
python3 status-psutil.py

Darkmode

前端已支持Darkmode,点击页面右下角小图标即可切换Darkmode(样式可能不尽如人意,各位有更好的样式或实现方法欢迎提交PR)默认不开启。

如何启动Darkmode:去掉index.html第99行注释即可

效果演示

前端欢迎自定义。

相关开源项目 :

About

云探针、多服务器探针、云监控、多服务器云监控 spread retract
C++
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
C++
1
https://gitee.com/Fangshing87/ServerStatus-Hotaru.git
git@gitee.com:Fangshing87/ServerStatus-Hotaru.git
Fangshing87
ServerStatus-Hotaru
ServerStatus-Hotaru
master

Search