Linux系统下,通过ServerStatus-Hotaru搭建自己的服务器监控平台

基于Linux下,通过ServerStatus-Hotaru搭建自己的服务器监控平台。最低需要2台机器,一台用于控制端,另一台用于客户端(可创建多台)。可直安装在宝塔面板。服务端、客户端脚本支持系统:Centos 7、Debian 8、Ubuntu 15.10 及以上、ArchLinux。Python客户端:支持 Python 版本:Python 2.7+。

服务端、客户端需下面的脚本:

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

脚本中有可选项,选择是安装新的 Nginx 程序或不安装而使用自己已经安装的 Nginx

如果使用自己的 Nginx 程序则需要将 /usr/local/ServerStatus/web 目录设置为网站目录即可

可以选择在使用脚本时就直接做好配置或者在 /usr/local/ServerStatus/server 中直接编辑 config.json 文件

  • 客户端
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh c

可以选择在使用脚本时就直接做好配置或者在 /usr/local/ServerStatus/client 中直接编辑 status-client.py 文件

服务器端配置文件修改:/usr/local/ServerStatus/web/json/stats.json 和 /usr/local/ServerStatus/server/config.json

服务器端配置文件修改:/usr/local/ServerStatus/client/status-client.py

演示:https://status.200022.xyz/

ServerStatus Github: https://github.com/BotoX/ServerStatus
ServerStatus-Hotaru Github: https://github.com/CokeMine/ServerStatus-Hotaru

ServerStatus-Hotaru 的图片使用有点花里胡哨,建议直接编辑 /usr/local/ServerStatus/web/css/hotaru_fix.css 这个文件,将头部背景图去掉,或者直接把 img 文件夹中的图片删除

超兽vps共 6259 篇文章

本博客内容仅供信息参考,主要记录我个人关注的主机测评结果和优惠活动。本站不参与任何商品或服务交易,也不提供中介服务;文中内容不构成购买或交易建议,本站不对其准确性、完整性、时效性或适用性作任何明示或默示保证

标签