linuxserver 版 docker
---
services:
smokeping:
image: lscr.io/linuxserver/smokeping:latest
container_name: smokeping
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- MASTER_URL=http://<master-host-ip>:80/smokeping/ #optional
- SHARED_SECRET=password #optional
- CACHE_DIR=/tmp #optional
volumes:
- ./data/config:/config
- ./data/data:/data
ports:
- 80:80
restart: unless-stopped
其中的 data/config/Targets
为监控目标配置。
配置说明
General
自行配置。
*** General ***
owner = frytea.com
contact = [email protected]
mailhost = my.mail.host
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
cgiurl = http://localhost/smokeping/smokeping.cgi
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
display_name = Frytea's SmokePing
@include /config/pathnames
Probes
配置侦测频率。
** Probes ***
+ FPing
binary = /usr/sbin/fping
+ FPing6
binary = /usr/sbin/fping
protocol = 6
+ DNS
binary = /usr/bin/dig
lookup = baidu.com
pings = 5
step = 300
+ TCPPing
binary = /usr/bin/tcpping
forks = 10
offset = random
pings = 5
port = 80
Targets
配置探测目标,详见部署实例。
Slaves
多节点侦测需配置。
*** Slaves ***
secrets=/etc/smokeping/smokeping_secrets
#+boomer
#display_name=boomer
#color=0000ff
#+slave2
#display_name=another
#color=00ff00
~
smokeping_secrets
多节点侦测时配置通信密钥,需填入兩個 smokeping
之間的密碼(兩邊密碼需相同)
host1:mysecret
host2:yoursecret
boomer:lkasdf93uhhfdfddf
~
多节点架设
多节点暂未实践,仅做记录,有空整理。
Slave 节点类似的方式启动,需要调整其中的参数。
---
services:
smokeping:
image: lscr.io/linuxserver/smokeping:latest
container_name: smokeping
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Shanghai
- MASTER_URL=http://<master-host-ip>:80/smokeping/ #optional
- SHARED_SECRET=password #optional
- CACHE_DIR=/tmp #optional
volumes:
- ./data/config:/config
- ./data/data:/data
ports:
- 80:80
restart: unless-stopped
主节点 Targets
配置使用 Slave
slaves = {你第一個slave} {你第二個slave}
另外需要在 smokeping_secrets
、slaves
中添加關於 slave
的資訊
Slave 节点检查探测是否传递到主节点
docker logs smokeping-slave
...
Sent data to Server. Server said OK
部署实例
三大运营商
+ Other
menu = 三大网络监控
title = 监控统计
++ CT
menu = 电信网络监控
title = 电信网络监控列表
host = /Other/CT/CT-BJ /Other/CT/CT-TJ /Other/CT/CT-HLJ /Other/CT/CT-SH /Other/CT/CT-SC /Other/CT/CT-GZ
+++ CT-BJ
menu = 北京电信
title = 北京电信
alerts = someloss
host = 202.96.199.133
+++ CT-TJ
menu = 天津电信
title = 天津电信
alerts = someloss
host = 219.150.32.132
+++ CT-HLJ
menu = 黑龙江电信
title = 黑龙江电信
alerts = someloss
host = 219.147.198.242
+++ CT-SH
menu = 上海电信
title = 上海电信
alerts = someloss
host = 116.228.111.118
+++ CT-SC
menu = 四川电信
title = 四川电信
alerts = someloss
host = 61.139.2.69
+++ CT-GZ
menu = 广东电信
title = 广东电信
alerts = someloss
host = 113.111.211.22
++ CU
menu = 联通网络监控
title = 联通网络监控列表
host = /Other/CU/CU-BJ /Other/CU/CU-TJ /Other/CU/CU-HLJ /Other/CU/CU-SH /Other/CU/CU-SC /Other/CU/CU-GZ
+++ CU-BJ
menu = 北京联通
title = 北京联通
alerts = someloss
host = 61.135.169.121
+++ CU-TJ
menu = 天津联通
title = 天津联通
alerts = someloss
host = 202.99.96.68
+++ CU-HLJ
menu = 黑龙江联通
title = 黑龙江联通
alerts = someloss
host = 202.97.224.69
+++ CU-SH
menu = 上海联通
title = 上海联通
alerts = someloss
host = 210.22.84.3
+++ CU-SC
menu = 四川联通
title = 四川联通
alerts = someloss
host = 119.6.6.6
+++ CU-GZ
menu = 广东联通
title = 广东联通
alerts = someloss
host = 221.5.88.88
++ CMCC
menu = 移动网络监控
title = 移动网络监控列表
host = /Other/CMCC/CMCC-BJ /Other/CMCC/CMCC-TJ /Other/CMCC/CMCC-HLJ /Other/CMCC/CMCC-SH /Other/CMCC/CMCC-SC /Other/CMCC/CMCC-GZ
+++ CMCC-BJ
menu = 北京移动
title = 北京移动
alerts = someloss
host = 221.130.33.52
+++ CMCC-TJ
menu = 天津移动
title = 天津移动
alerts = someloss
host = 211.137.160.5
+++ CMCC-HLJ
menu = 黑龙江移动
title = 黑龙江移动
alerts = someloss
host = 211.137.241.35
+++ CMCC-SH
menu = 上海移动
title = 上海移动
alerts = someloss
host = 117.131.19.23
+++ CMCC-SC
menu = 四川移动
title = 四川移动
alerts = someloss
host = 218.201.4.3
+++ CMCC-GZ
menu = 广东移动
title = 广东移动
alerts = someloss
host = 211.136.192.6
国际网站
+ InternetSites
menu = Internet Sites
title = Internet Sites
++ Facebook
menu = Facebook
title = Facebook
host = facebook.com
++ Youtube
menu = YouTube
title = YouTube
host = youtube.com
++ JupiterBroadcasting
menu = JupiterBroadcasting
title = JupiterBroadcasting
host = jupiterbroadcasting.com
++ GoogleSearch
menu = Google
title = google.com
host = google.com
++ GoogleSearchIpv6
menu = Google
probe = FPing6
title = ipv6.google.com
host = ipv6.google.com
++ linuxserverio
menu = linuxserver.io
title = linuxserver.io
host = linuxserver.io
欧美节点
+ Europe
menu = Europe
title = European Connectivity
++ Germany
menu = Germany
title = The Fatherland
+++ TelefonicaDE
menu = Telefonica DE
title = Telefonica DE
host = www.telefonica.de
++ Switzerland
menu = Switzerland
title = Switzerland
+++ CernIXP
menu = CernIXP
title = Cern Internet eXchange Point
host = cixp.web.cern.ch
+++ SBB
menu = SBB
title = SBB
host = www.sbb.ch/en
++ UK
menu = United Kingdom
title = United Kingdom
+++ CambridgeUni
menu = Cambridge
title = Cambridge
host = cam.ac.uk
+++ UEA
menu = UEA
title = UEA
host = www.uea.ac.uk
+ USA
menu = North America
title = North American Connectivity
++ MIT
menu = MIT
title = Massachusetts Institute of Technology Webserver
host = web.mit.edu
++ IU
menu = IU
title = Indiana University
host = www.indiana.edu
++ UCB
menu = U. C. Berkeley
title = U. C. Berkeley Webserver
host = www.berkeley.edu
++ UCSD
menu = U. C. San Diego
title = U. C. San Diego Webserver
host = ucsd.edu
++ UMN
menu = University of Minnesota
title = University of Minnesota
host = twin-cities.umn.edu
++ OSUOSL
menu = Oregon State University Open Source Lab
title = Oregon State University Open Source Lab
host = osuosl.org