landrok / webstatus
一个用于监控Raspbian、Ubuntu或Debian的PHP库
0.4.0
2017-05-21 10:12 UTC
Requires
- php: >=5.4.0 || ^7.0
- rain/raintpl: >=3.0.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
README
这是一个简单易用的监控工具。它专为Raspbian操作系统设计,但与Debian和Ubuntu兼容。
无需配置。只需运行安装程序即可使用。
想看看吗?请参阅实时演示
特性
-
易于安装
-
处理器、内存、温度、磁盘空间、网络等全局概览
-
主要指标清晰的标签和趋势
-
每个指标都绑定到相应的shell命令结果的转储
-
实时监控CPU、内存和网络带宽使用情况
-
易于定制:特定进程、日志文件
支持的操作系统
- Raspbian >=8
- Debian >=8
- Ubuntu >=14.04
安装
# Download the latest version wget https://github.com/landrok/webstatus/archive/0.4.0.tar.gz # Unzip tar -xf 0.4.0.tar.gz # Install (Must be done with root rights) ./webstatus-0.4.0/bin/install.sh
如果安装失败
- 检查您的系统是否已更新
- 创建一个问题并复制/粘贴安装日志
简易安装
您有完整的自动化模式,带有-y参数
./webstatus-0.4.0/bin/install.sh -y
自定义标题
- 编辑app/config/global-custom.ini.php
- 在
[webapp]
部分,更改-
title
值,用于网页浏览器状态栏标题 -
label
值,用于HTML导航栏标题 -
icon
值,必须在glyphicons中选择,删除"glyphicon glyphicon-",只保留字符串的最后部分。示例:要打印星号,建议的类是
glyphicon glyphicon-asterisk
。只需指示asterisk
。
-
隐藏IP地址
此功能仅适用于IPv4地址
- 编辑app/config/global-custom.ini.php
- 在
[webapp]
部分,将hide-ip
值设置为on
或1
自定义阈值
- 编辑app/config/global-custom.ini.php
- 在
[thresholds]
部分,更改-
*.mid
或*.high
的每个指标值示例:要在50%以下显示绿色标志,50%到70%之间显示橙色标志,70%以上显示红色标志,值应为
cpu.mid=50
和cpu.high=70
-
自定义进程
- 编辑app/config/global-custom.ini.php
- 在
[cron]
部分,更改-
processes.pattern
值示例:要关注apache和mysql进程,值应为
"apache|mysql"
-
自定义日志
即将推出
自定义菜单
即将推出
激活远程功能
远程功能分为两部分:客户端和服务器
-
在两台机器上安装webstatus
-
在
**客户端机器
上,编辑app/config/global-custom.ini.php- 在
[remote]
部分,更改remote.client
值为on
remote.url
值为http://your-server-url/webstatus/remote.php
- 在
-
在
**服务器机器
上,编辑app/config/global-custom.ini.php- 在
[remote]
部分,更改remote.server
值为on
- 在
这就完成了。现在您可以在服务器上跟踪客户端的状态。