uptime-kuma是一款开源监控工具,类似于“Uptime Robot和statping”,ui非常简洁美观,支持TCP/PING/HTTP监控等,还支持多语言其中包括中文!
项目:https://github.com/louislam/uptime-kuma
安装步骤:
1.安装docker
apt install docker.io
2.安装uptime-kuma
# Create a volume
docker volume create uptime-kuma
# Start the container
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
3.配置nginx转发(删除其他的location,否则可能会导致404),添加:
location /static {
alias /static;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
实际效果:
测试页面地址:
https://up.obaby.org.cn/status/0
ps:
☆文章版权声明☆
* 网站名称:obaby@mars * 网址:https://h4ck.org.cn/ * 本文标题: 《Uptime Kuma自建服务监控服务》 * 本文链接:https://h4ck.org.cn/2022/12/uptime-kuma%e8%87%aa%e5%bb%ba%e6%9c%8d%e5%8a%a1%e7%9b%91%e6%8e%a7%e6%9c%8d%e5%8a%a1/ * 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。
分享文章: