add tcpping probe

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save