1、部署docker环境
curl -fsSL get.docker.com -o get-docker.sh
CHANNEL=stable sh get-docker.sh --mirror Aliyun
2、启动docker
systemctl start docker
3、拉取镜像
docker pull linuxserver/smokeping
4、创建目录
mkdir -p /data/smokeping/config
5、进入目录
cd /data/smokeping/
mkdir data
mkdir target
6、启动服务
docker run -d
–name=smokeping
-e PUID=1000
-e PGID=1000
-e TZ=Asia/Shanghai
-p 80:80
-v /data/smokeping/config:/config
-v /data/smokeping/data:/data
-v /data/smokeping/target:/data/target
–restart unless-stopped
linuxserver/smokeping
7、在web直接访问服务器ip即可
8、修改Targets,更改监控信息
vim /data/smokeping/config/Targets
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of Arch User. \
Here you will learn all about the latency of our network.
+ targets
menu = Targets
++ GoogleDNS
menu = Google DNS
title = Google DNS server
host = 8.8.8.8
++ baiduURL
menu = baidu URL
title = baidu URL server
host = www.baidu.com
++ MultiHost
menu = Multihost example
title = Google DNS and baidu URL
host =/targets/GoogleDNS /targets/baidu
9、数据展示