Code Monkey home page Code Monkey logo

serverstatus-hotaru's Introduction

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行注释即可

效果演示

前端欢迎自定义。

相关开源项目 :

serverstatus-hotaru's People

Contributors

cokemine avatar coldercoder avatar dongfeisay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.