当前位置: 首页 > 科技观察

Uptime-Kuma一款花哨的开源监控工具

时间:2023-03-13 12:29:18 科技观察

介绍uptime-kuma[1]是一款花哨的自托管网站监控工具,支持比较丰富的功能:监控HTTP(s)/TCP/HTTP(s)Uptimeforkeywords/Ping/DNS记录/Push/Steam游戏服务器等支持丰富的通知渠道,例如通过Telegram、Discord、Gotify、Slack、Pushover、电子邮件(SMTP)发送通知等70多种通知服务,点击这里查看完整列表[2].20秒间隔。[支持多种语言](https://github.com/louislam/uptime-kuma/tree/master/src/languages“languages”)简单的状态页面ping图监控证书信息安装监控服务和被监控的服务不要放在同一台服务器上,被监控服务的重要性级别应该是1级。安装mkdir-pv/data/uptimekuma&&cd/datadockerrun-d--restart=always-p3001:3001-v通过docker`pwd`/uptimekuma:/app/data--nameuptime-kumalouislam/uptime-kuma:1.11.4安装通过docker-composeversion:"3"services:uptime-kuma:image:louislam/uptime-kuma:1.11.4container_name:"uptime-kuma"重启:"always"volumes:-"/etc/localtime:/etc/localtime"-"/data/uptimekuma:/app/data"ports:-"3001:3001"配置nginx(可选)server{server_namestatus.devopsman.cn;听443sslhttp2;ssl_certificate/www/server/panel/vhost/nginx/ssl/status.devopsman.cn_bundle.pem;ssl_certificate_key/www/server/panel/vhost/nginx/ssl/status.devopsman.cn.key;位置/{proxy_passhttp://127.0.0.1:3001;proxy_http_version1.1;代理集_header升级$http_upgrade;proxy_set_header连接“升级”;}access_log/www/wwwlogs/uptimestatus.log主要;error_log/www/wwwlogs/uptimestatus.error.log;}相比blackbox_exporter监控url和证书,这个显示很大Up,花哨的监控面板有时候更适合领导和客户欣赏;最后值得一提的是报警安全API,本作作者无意通过API支持监控项等信息。从issue中了解到,估计代码是贡献出来的,不会用到。如果支持API,那么可以通过自动化方便的进行管理,但是也可以自己实现。参考[1]uptime-kuma:https://github.com/louislam/uptime-kuma[2]notifications:https://github.com/louislam/uptime-kuma/tree/master/src/components/notifications[3]uptimerobot:https://uptimerobot.com/