docker run -d \
  --name smokeping \
  -p 8081:80 \
  -v /root/smokeping/config:/config \
  -e TZ=Asia/Shanghai \
  --restart=unless-stopped \
  lscr.io/linuxserver/smokeping

设置要监控的服务器

cd /root/smokeping/config

Targets 配置修改模板

*** Targets ***

probe = FPing

menu = Top
title = Network Latency Monitoring
remark = Monitoring multiple servers

+ MyServers
menu = My Servers
title = Monitored Servers

++ Server1
menu = Server 1
title = My First Server
host = 8.8.8.8

++ Server2
menu = Server 2
title = My Second Server
host = 1.1.1.1
  • + MyServers → 这是分组名称,可以自己定义
  • ++ Server1++ Server2 → 每个监控的服务器
  • host = 8.8.8.8 → 你要监控的 IP 或域名

修改配置文件后重启容器

docker restart smokeping

访问web页面

http://<你的服务器IP>:8081