Smokeping是由RRDTool的作者Tobi Oetiker开发的开源网络性能监控工具,完全使用Perl 语言编写。它以其出色的图形显示能力和多种探测方式而闻名,支持fping、echoping、dig、curl等多种方法,能够监测DNS、SSH`性能等。

主要特点

  • 多种探测方式:支持多种探测工具,灵活监测各种网络服务。
  • 美观的可视化:利用 RRDTool,Smokeping 绘制的图表非常精美,能够通过颜色和阴影直观显示网络丢包和延迟情况。
  • 集中监测:支持在多个节点收集相同监测点的数据,方便进行综合分析。
  • 灵活的警报设置:提供多样化的警报配置,不仅限于简单的阀值设置。

Smokeping 是评估 IDC 网络质量和稳定性的理想工具,能够有效监测 WWW 服务器性能、DNS 查询性能和 SSH 性能等。

docker-compose.yml

services:
  smokeping:
    image: lscr.io/linuxserver/smokeping:latest
    container_name: smokeping
    hostname: smokeping #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
      - ./data:/data
    ports:
      - 8888:80
    restart: unless-stopped

Database

root@armbian:/data/smoking-ping/config# cat Database
*** Database ***

# 修改为60
step     = 60

# 探针数量
pings    = 20

# consfn mrhb steps total

AVERAGE  0.5   1  1008
AVERAGE  0.5  12  4320
    MIN  0.5  12  4320
    MAX  0.5  12  4320
AVERAGE  0.5 144   720
    MAX  0.5 144   720
    MIN  0.5 144   720

Targets

root@armbian:/data/smoking-ping/config# cat  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.

+ BandwagonHost

menu = BandwagonHost
title = BandwagonHost

++ HongKong85

menu = 香港 HK85
title = 香港 HK85
host = 45.78.18.149


++ HongKongcn2gia
menu = 香港 CN2 GIA
title = 香港 CN2 GIA
host = 93.179.124.115

++ jpos1
menu = 大阪软银
title = 大阪软银
host = 185.212.59.222

++ jpdc1
menu = 东京 DC39
title = 东京 DC39
host = 74.82.192.227

++ usladc1
menu = 洛杉矶 DC1
title = 洛杉矶 DC1
host = 144.34.236.21



+ ChinaDNS

menu = China DNS
title = China DNS

++ ChinaNet

menu = ChinaNet
title = ChinaNet

+++ Jiangsu

menu = 江苏
title = 江苏
host = 61.177.7.1

+++ ShangHai

menu = 上海
title = 上海
host = 202.96.209.5

+ 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

+ DNS
menu = Public DNS
title = Public DNS

++ GoogleDNS1
menu = Google DNS 1
title = Google DNS 8.8.8.8
host = 8.8.8.8

++ GoogleDNS2
menu = Google DNS 2
title = Google DNS 8.8.4.4
host = 8.8.4.4

++ OpenDNS1
menu = OpenDNS1
title = OpenDNS1
host = 208.67.222.222

++ OpenDNS2
menu = OpenDNS2
title = OpenDNS2
host = 208.67.220.220

++ CloudflareDNS1
menu = Cloudflare DNS 1
title = Cloudflare DNS 1.1.1.1
host = 1.1.1.1

++ CloudflareDNS2
menu = Cloudflare DNS 2
title = Cloudflare DNS 1.0.0.1
host = 1.0.0.1

++ L3-1
menu = Level3 DNS 1
title = Level3 DNS 4.2.2.1
host = 4.2.2.1

++ L3-2
menu = Level3 DNS 2
title = Level3 DNS 4.2.2.2
host = 4.2.2.2

++ Quad9
menu = Quad9
title = Quad9 DNS 9.9.9.9
host = 9.9.9.9

+ DNSProbes
menu = DNS Probes
title = DNS Probes
probe = DNS

++ GoogleDNS1
menu = Google DNS 1
title = Google DNS 8.8.8.8
host = 8.8.8.8

++ GoogleDNS2
menu = Google DNS 2
title = Google DNS 8.8.4.4
host = 8.8.4.4

++ OpenDNS1
menu = OpenDNS1
title = OpenDNS1
host = 208.67.222.222

++ OpenDNS2
menu = OpenDNS2
title = OpenDNS2
host = 208.67.220.220

++ CloudflareDNS1
menu = Cloudflare DNS 1
title = Cloudflare DNS 1.1.1.1
host = 1.1.1.1

++ CloudflareDNS2
menu = Cloudflare DNS 2
title = Cloudflare DNS 1.0.0.1
host = 1.0.0.1

++ L3-1
menu = Level3 DNS 1
title = Level3 DNS 4.2.2.1
host = 4.2.2.1

++ L3-2
menu = Level3 DNS 2
title = Level3 DNS 4.2.2.2
host = 4.2.2.2

++ Quad9
menu = Quad9
title = Quad9 DNS 9.9.9.9
host = 9.9.9.9

启动

root@armbian:/data/smoking-ping#  docker-compose up -d

访问

报错解决

修改完Database文件后,需要删除data下面rrd的文件,否则报错。

标签: docker, 网络监控, Smokeping, RRDTool, 性能测试, 开源工具, 网络管理, 监测工具

添加新评论