VPS优惠推送
分享好玩教程

Docker搭建smokeping三网监控工具教程

SmokePing 是由 RRDtool 的作者 Tobi Oetiker 开发的一款监控网络状态和稳定性的开源软件。使用脚本安装后,SmokePing 会定时向目标发送 TCP 数据包,并对返回值进行测量和记录,通过 RRDtool 制图程序图形化地展示在各个时段内网络的延迟、抖动和丢包率,帮助我们更清楚、更直观地了解服务器的网络状况。这篇文章利用docker安装!!

SmokePing搭建 一键脚本:

bash -c "$(curl -L https://github.com/jiuqi9997/smokeping/raw/main/main.sh)"

 项目地址:https://github.com/jiuqi9997/smokeping

1、设置时间

设置系统时间,一键脚本如下:

timedatectl set-timezone Asia/Shanghai

之后可以显示下当前的时间看看对不对,命令如下:

date

 

 

2、安装docker

curl -sSL https://get.docker.com/ | sh

 

 3、安装smokeping

 

docker pull linuxserver/smokeping
docker run -d \
--name=smokeping \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Asia/Shanghai \
-p 9080:80 \
-v /home/config/smokeping:/config \
-v /home/data/smokeping:/data \
--restart unless-stopped \
linuxserver/smokeping

 

 

4、更新监控服务器

路径 /home/config/smokeping/Targets

*** Targets ***

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of WORKS Company. \
         Here you will learn all about the latency of our network.

+ Other
menu = 三大网络监控
title = 监控统计

++ CT

menu = 电信网络监控
title = 电信网络监控列表
host = /Other/CT/CT-BJ /Other/CT/CT-SH /Other/CT/CT-GZ /Other/CT/CT-CD /Other/CT/CT-XA

+++ CT-BJ

menu = 北京电信
title = 北京电信
alerts = someloss
host = 45.126.112.36

+++ CT-SH

menu = 上海电信
title = 上海电信
alerts = someloss
host = 210.5.157.1

+++ CT-GZ

menu = 广州电信
title = 广州电信
alerts = someloss
host = 183.61.109.221

+++ CT-CD

menu = 成都电信
title = 成都电信
alerts = someloss
host = 118.113.198.158

+++ CT-XA

menu = 西安电信
title = 西安电信
alerts = someloss
host = 118.113.198.158

++ CU

menu = 联通网络监控
title = 联通网络监控列表
host = /Other/CU/CU-BJ /Other/CU/CU-SH /Other/CU/CU-GZ /Other/CU/CU-CD /Other/CU/CU-XA

+++ CU-BJ

menu = 北京联通
title = 北京联通
alerts = someloss
host = 61.135.169.121

+++ CU-SH

menu = 上海联通
title = 上海联通
alerts = someloss
host = 211.95.52.116

+++ CU-GZ

menu = 广州联通
title = 广州联通
alerts = someloss
host = 221.5.88.88

+++ CU-CD

menu = 成都联通
title = 成都联通
alerts = someloss
host = 119.6.6.6

+++ CU-XA

menu = 西安联通
title = 西安联通
alerts = someloss
host = 113.200.63.217

++ CMCC

menu = 移动网络监控
title = 移动网络监控列表
host = /Other/CMCC/CMCC-BJ /Other/CMCC/CMCC-SH /Other/CMCC/CMCC-GZ /Other/CMCC/CMCC-CD /Other/CMCC/CMCC-XA

+++ CMCC-BJ

menu = 北京移动
title = 北京移动
alerts = someloss
host = 221.130.33.52

+++ CMCC-SH

menu = 上海移动
title = 上海移动
alerts = someloss
host = 221.183.67.209

+++ CMCC-GZ

menu = 广州移动
title = 广州移动
alerts = someloss
host = 211.136.192.6

+++ CMCC-CD

menu = 成都移动
title = 成都移动
alerts = someloss
host = 218.201.4.3

+++ CMCC-XA

menu = 西安移动
title = 西安移动
alerts = someloss
host = 111.19.191.29

+ global
menu = 国际线路
title = 监控统计
host = /global/cf /global/yt /global/gg /global/sbd /global/cmi

++ cf

menu = Cloudflare
title = Cloudflare
alerts = someloss
host = www.cloudflare.com

++ yt

menu = YouTube
title = YouTube
alerts = someloss
host = www.youTube.com

++ gg

menu = google
title = google
alerts = someloss
host = www.google.com

++ sbd

menu = 美国圣何塞
title = 美国圣何塞
alerts = someloss
host = 209.209.57.3

++ cmi

menu = 香港CMI
title = 香港CMI
alerts = someloss
host = 117.18.13.248

 

 5、最后

重启docker

docker restart smokeping

 

赞(0)
未经允许不得转载:F12笔记 » Docker搭建smokeping三网监控工具教程

评论 抢沙发