add tcpping probe

master
livejq 2 years ago
parent 63489f3181
commit fad1fd09b3
  1. 15
      AutoPing.sh
  2. 8
      SMP/CentOS7/Alerts
  3. 4
      SMP/CentOS7/Database
  4. 63
      SMP/CentOS7/HW-HK
  5. 42
      SMP/CentOS7/Probes
  6. 6
      SMP/CentOS7/Targets
  7. 4
      SMP/Ubuntu20/Database
  8. 63
      SMP/Ubuntu20/HW-HK
  9. 40
      SMP/Ubuntu20/Probes
  10. 6
      SMP/Ubuntu20/Targets

@ -1,9 +1,8 @@
#!/usr/bin/env bash
#
# Description: Choose a faster mirror for Linux script
# Description: Install monitor or agent automatically.
#
# Copyright (C) 2021 liveJQ <cloud@livejq.fun>
#
RED='\033[0;31m'
GREEN='\033[0;32m'
@ -102,8 +101,8 @@ after() {
}
install_SMP() {
rpm_packages="smokeping wqy-zenhei-fonts.noarch"
apt_packages="smokeping echoping traceroute"
rpm_packages="smokeping tcptraceroute wqy-zenhei-fonts.noarch"
apt_packages="smokeping echoping traceroute tcptraceroute"
read -rp "输入监控页面端口(默认20000):" port1
ss -tnlp | grep -q ":${port1:-20000} " && echo -e "${RED}端口 ${port1:-20000} 已被占用${PLAIN}" && exit 1
if [[ $ID == "debian" || $ID == "ubuntu" ]]; then
@ -157,8 +156,8 @@ configureUb() {
sed -i 's/DirectoryIndex/DirectoryIndex smokeping.cgi/g' /etc/apache2/mods-available/dir.conf
systemctl enable apache2 smokeping
#TCPPing
#wget -O /usr/bin/tcpping https://raw.githubusercontent.com/deajan/tcpping/master/tcpping
#chmod 755 /usr/bin/tcpping
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping
chmod 755 /usr/bin/tcpping
chmod 777 -R /var/lib/smokeping/
#ufw
ufw allow 22/tcp && ufw allow ${port1:-20000}/tcp
@ -222,8 +221,8 @@ configureCe() {
sed -i 's/Listen 80/Listen '${port1:-20000}'/g' /etc/httpd/conf/httpd.conf
systemctl enable httpd smokeping
#TCPPing
#wget -O /usr/bin/tcpping https://raw.githubusercontent.com/deajan/tcpping/master/tcpping
#chmod 755 /usr/bin/tcpping
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping
chmod 755 /usr/bin/tcpping
chmod 777 -R /var/lib/smokeping/
#firewalld
systemctl restart firewalld && systemctl enable firewalld

@ -8,6 +8,12 @@ pattern = >4%,>4%
comment = there is 4% packet loss
edgetrigger = yes
+bigloss
type = loss
pattern = >30%,>30%
comment = there is 30% packet loss
edgetrigger = yes
+rttdetect
type = matcher
pattern = Avgratio(historic=>5,current=>2,comparator=>'>',percentage=>120)
@ -18,4 +24,4 @@ edgetrigger = yes
type = matcher
pattern = Avgratio(historic=>5,current=>2,comparator=>'>',percentage=>150)
comment = rtt increased 50%
edgetrigger = yes
edgetrigger = yes

@ -1,7 +1,7 @@
*** Database ***
step = 60
pings = 50
step = 10
pings = 5
# consfn mrhb steps total

@ -1,78 +1,75 @@
++ 8e3949ec4746024f916d5627b3fcc2d0
title=HW-HK
menu=Ping
+++ de389dbbc0bb9eeb46aa7eb87e13e54b
+ de389dbbc0bb9eeb46aa7eb87e13e54b
title=HK_PUBG_IBM[119.81.227.36]
menu=HK_PUBG_IBM[119.81.227.36]
host=119.81.227.36
alerts=someloss,rttdetect,rttrise
+++ be78f6d4704b8c0ee92406950ca9f987
alerts=someloss
+ be78f6d4704b8c0ee92406950ca9f987
title=HK_PUBG_IBM[161.202.47.170]
menu=HK_PUBG_IBM[161.202.47.170]
host=161.202.47.170
alerts=someloss,rttdetect,rttrise
+++ d92c5acfe1cb33076ac37b2bef3f78d4
alerts=someloss
+ d92c5acfe1cb33076ac37b2bef3f78d4
title=HK_PUBG_IBM[161.202.47.166]
menu=HK_PUBG_IBM[161.202.47.166]
host=161.202.47.166
alerts=someloss,rttdetect,rttrise
+++ 6fff23fc984206fd5cd076f5c106c52c
alerts=someloss
+ 6fff23fc984206fd5cd076f5c106c52c
title=HK_PUBG_AZURE[13.88.217.23]
menu=HK_PUBG_AZURE[13.88.217.23]
host=13.88.217.23
alerts=someloss,rttdetect,rttrise
+++ e7e7d6d377d0de42fce5cfcfeb7c652f
alerts=someloss
+ e7e7d6d377d0de42fce5cfcfeb7c652f
title=HK_PUBG_AZURE[13.94.35.69]
menu=HK_PUBG_AZURE[13.94.35.69]
host=13.94.35.69
alerts=someloss,rttdetect,rttrise
+++ 401c9f38dd061ec393e202d8a4eaa1d2
alerts=someloss
+ 401c9f38dd061ec393e202d8a4eaa1d2
title=HK_PUBG_AZURE[111.221.67.145]
menu=HK_PUBG_AZURE[111.221.67.145]
host=111.221.67.145
alerts=someloss,rttdetect,rttrise
+++ 610af5a73f1ce06bef75c30cd262a1df
alerts=someloss
+ 610af5a73f1ce06bef75c30cd262a1df
title=HK_RB6_AZURE[65.52.166.225]
menu=HK_RB6_AZURE[65.52.166.225]
host=65.52.166.225
alerts=someloss,rttdetect,rttrise
+++ ac494b2b8a6605ff187838ef47358266
alerts=someloss
+ ac494b2b8a6605ff187838ef47358266
title=HK_PCCW_PCCW[202.82.252.193]
menu=HK_PCCW_PCCW[202.82.252.193]
host=202.82.252.193
alerts=someloss,rttdetect,rttrise
+++ bb8b86b775ab68a863a133ad86c6c938
alerts=someloss
+ bb8b86b775ab68a863a133ad86c6c938
title=HK_PCCW_PCCW[202.82.252.30]
menu=HK_PCCW_PCCW[202.82.252.30]
host=202.82.252.30
alerts=someloss,rttdetect,rttrise
+++ 30341e94c10e5753f61ad4408ac96b51
alerts=someloss
+ 30341e94c10e5753f61ad4408ac96b51
title=HK_PCCW_PCCW[202.82.252.126]
menu=HK_PCCW_PCCW[202.82.252.126]
host=202.82.252.126
alerts=someloss,rttdetect,rttrise
+++ a514a15ee28047e6f9bad75732c6a2b1
alerts=someloss
+ a514a15ee28047e6f9bad75732c6a2b1
title=HK_CSGO_NTT[153.254.86.127]
menu=HK_CSGO_NTT[153.254.86.127]
host=153.254.86.127
alerts=someloss,rttdetect,rttrise
+++ 6ea29d52bdd114f8dd0b6de27d1c6010
alerts=someloss
+ 6ea29d52bdd114f8dd0b6de27d1c6010
title=HK_CSGO_NTT[153.254.87.129]
menu=HK_CSGO_NTT[153.254.87.129]
host=153.254.87.129
alerts=someloss,rttdetect,rttrise
+++ 1e466f261c180d98f6322464a292e8ad
alerts=someloss
+ 1e466f261c180d98f6322464a292e8ad
title=HK_ROE_Tencent[150.109.40.141]
menu=HK_ROE_Tencent[150.109.40.141]
host=150.109.40.141
alerts=someloss,rttdetect,rttrise
+++ 3a01244cef45d139a9696e97816e174d
alerts=someloss
+ 3a01244cef45d139a9696e97816e174d
title=HK_ROE_Tencent[150.109.40.52]
menu=HK_ROE_Tencent[150.109.40.52]
host=150.109.40.52
alerts=someloss,rttdetect,rttrise
+++ 251ebf85c7b1dc527503785e65c7ec01
alerts=someloss
+ 251ebf85c7b1dc527503785e65c7ec01
title=HK_ROE_Tencent[150.109.40.72]
menu=HK_ROE_Tencent[150.109.40.72]
host=150.109.40.72
alerts=someloss,rttdetect,rttrise
alerts=someloss

@ -1,32 +1,34 @@
*** Probes ***
+ FPing
binary = /usr/sbin/fping
binary = /usr/bin/fping
++ FPingtun
offset = 0%
++ fpingdr
offset = 0%
++ FPingtun0
offset = random
++ FPingtun1
offset = random
#++ FPingtun
#offset = 0%
#++ fpingdr
#offset = 0%
#++ FPingtun0
#offset = random
#++ FPingtun1
#offset = random
#+ EchoPing
#binary = /usr/bin/echoping
#offset = random
#udp = yes
+Curl
binary=/usr/bin/curl
forks=5
offset=50%
urlformat=http://download.xunyou.com/xunyou2012/verinfo.txt
#+ TCPPing
#binary = /usr/bin/tcpping
#+ Curl
#binary = /usr/bin/curl
#forks = 5
#offset = 50%
#timeout = 15
#port = 80
#urlformat = http://download.xunyou.com/xunyou2012/verinfo.txt
+ TCPPing
binary = /usr/bin/tcpping
forks = 5
offset = 50%
timeout = 5
step = 10
port = 80

@ -1,14 +1,10 @@
*** Targets ***
probe = FPingtun
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of ANYUN INTERNET TECHNOLOGY LIMITED Company. \
Here you will learn all about the latency of our network.
+ defualtroute
menu = 默认网关ping
title = 默认网关ping
probe = FPingtun
@include /opt/ysnet/HW-HK

@ -1,7 +1,7 @@
*** Database ***
step = 60
pings = 50
step = 10
pings = 5
# consfn mrhb steps total

@ -1,78 +1,75 @@
++ HK
title=HW-HK
menu=Ping
+++ de389dbbc0bb9eeb46aa7eb87e13e54b
+ de389dbbc0bb9eeb46aa7eb87e13e54b
title=HK_PUBG_IBM[119.81.227.36]
menu=HK_PUBG_IBM[119.81.227.36]
host=119.81.227.36
alerts=someloss,rttdetect,rttrise
+++ be78f6d4704b8c0ee92406950ca9f987
alerts=someloss
+ be78f6d4704b8c0ee92406950ca9f987
title=HK_PUBG_IBM[161.202.47.170]
menu=HK_PUBG_IBM[161.202.47.170]
host=161.202.47.170
alerts=someloss,rttdetect,rttrise
+++ d92c5acfe1cb33076ac37b2bef3f78d4
alerts=someloss
+ d92c5acfe1cb33076ac37b2bef3f78d4
title=HK_PUBG_IBM[161.202.47.166]
menu=HK_PUBG_IBM[161.202.47.166]
host=161.202.47.166
alerts=someloss,rttdetect,rttrise
+++ 6fff23fc984206fd5cd076f5c106c52c
alerts=someloss
+ 6fff23fc984206fd5cd076f5c106c52c
title=HK_PUBG_AZURE[13.88.217.23]
menu=HK_PUBG_AZURE[13.88.217.23]
host=13.88.217.23
alerts=someloss,rttdetect,rttrise
+++ e7e7d6d377d0de42fce5cfcfeb7c652f
alerts=someloss
+ e7e7d6d377d0de42fce5cfcfeb7c652f
title=HK_PUBG_AZURE[13.94.35.69]
menu=HK_PUBG_AZURE[13.94.35.69]
host=13.94.35.69
alerts=someloss,rttdetect,rttrise
+++ 401c9f38dd061ec393e202d8a4eaa1d2
alerts=someloss
+ 401c9f38dd061ec393e202d8a4eaa1d2
title=HK_PUBG_AZURE[111.221.67.145]
menu=HK_PUBG_AZURE[111.221.67.145]
host=111.221.67.145
alerts=someloss,rttdetect,rttrise
+++ 610af5a73f1ce06bef75c30cd262a1df
alerts=someloss
+ 610af5a73f1ce06bef75c30cd262a1df
title=HK_RB6_AZURE[65.52.166.225]
menu=HK_RB6_AZURE[65.52.166.225]
host=65.52.166.225
alerts=someloss,rttdetect,rttrise
+++ ac494b2b8a6605ff187838ef47358266
alerts=someloss
+ ac494b2b8a6605ff187838ef47358266
title=HK_PCCW_PCCW[202.82.252.193]
menu=HK_PCCW_PCCW[202.82.252.193]
host=202.82.252.193
alerts=someloss,rttdetect,rttrise
+++ bb8b86b775ab68a863a133ad86c6c938
alerts=someloss
+ bb8b86b775ab68a863a133ad86c6c938
title=HK_PCCW_PCCW[202.82.252.30]
menu=HK_PCCW_PCCW[202.82.252.30]
host=202.82.252.30
alerts=someloss,rttdetect,rttrise
+++ 30341e94c10e5753f61ad4408ac96b51
alerts=someloss
+ 30341e94c10e5753f61ad4408ac96b51
title=HK_PCCW_PCCW[202.82.252.126]
menu=HK_PCCW_PCCW[202.82.252.126]
host=202.82.252.126
alerts=someloss,rttdetect,rttrise
+++ a514a15ee28047e6f9bad75732c6a2b1
alerts=someloss
+ a514a15ee28047e6f9bad75732c6a2b1
title=HK_CSGO_NTT[153.254.86.127]
menu=HK_CSGO_NTT[153.254.86.127]
host=153.254.86.127
alerts=someloss,rttdetect,rttrise
+++ 6ea29d52bdd114f8dd0b6de27d1c6010
alerts=someloss
+ 6ea29d52bdd114f8dd0b6de27d1c6010
title=HK_CSGO_NTT[153.254.87.129]
menu=HK_CSGO_NTT[153.254.87.129]
host=153.254.87.129
alerts=someloss,rttdetect,rttrise
+++ 1e466f261c180d98f6322464a292e8ad
alerts=someloss
+ 1e466f261c180d98f6322464a292e8ad
title=HK_ROE_Tencent[150.109.40.141]
menu=HK_ROE_Tencent[150.109.40.141]
host=150.109.40.141
alerts=someloss,rttdetect,rttrise
+++ 3a01244cef45d139a9696e97816e174d
alerts=someloss
+ 3a01244cef45d139a9696e97816e174d
title=HK_ROE_Tencent[150.109.40.52]
menu=HK_ROE_Tencent[150.109.40.52]
host=150.109.40.52
alerts=someloss,rttdetect,rttrise
+++ 251ebf85c7b1dc527503785e65c7ec01
alerts=someloss
+ 251ebf85c7b1dc527503785e65c7ec01
title=HK_ROE_Tencent[150.109.40.72]
menu=HK_ROE_Tencent[150.109.40.72]
host=150.109.40.72
alerts=someloss,rttdetect,rttrise
alerts=someloss

@ -1,32 +1,34 @@
*** Probes ***
+ FPing
binary = /usr/bin/fping
++ FPingtun
offset = 0%
++ fpingdr
offset = 0%
++ FPingtun0
offset = random
++ FPingtun1
offset = random
#++ FPingtun
#offset = 0%
#++ fpingdr
#offset = 0%
#++ FPingtun0
#offset = random
#++ FPingtun1
#offset = random
#+ EchoPing
#binary = /usr/bin/echoping
#offset = random
#udp = yes
+ Curl
binary = /usr/bin/curl
forks = 5
offset = 50%
urlformat = http://download.xunyou.com/xunyou2012/verinfo.txt
#+ TCPPing
#binary = /usr/bin/tcpping
#+ Curl
#binary = /usr/bin/curl
#forks = 5
#offset = 50%
#timeout = 15
#port = 80
#urlformat = http://download.xunyou.com/xunyou2012/verinfo.txt
+ TCPPing
binary = /usr/bin/tcpping
forks = 5
offset = 50%
timeout = 5
step = 10
port = 80

@ -1,14 +1,10 @@
*** Targets ***
probe = FPingtun
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of ANYUN INTERNET TECHNOLOGY LIMITED Company. \
Here you will learn all about the latency of our network.
+ defualtroute
menu = 默认网关ping
title = 默认网关ping
probe = FPingtun
@include /opt/ysnet/HW-HK

Loading…
Cancel
Save