In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
How to use smokeping to monitor the network quality of the idc computer room? from the delay and packet loss on the monitoring chart, you can tell whether the network of your computer room is stable, whether it is multi-line, whether it is a BGP room, and what is the situation of each of the three operators' networks in each city. If there is a problem, if there is a solution. And if you choose a new computer room, you can judge whether it is suitable or not according to the monitoring results of smokeping.
Chart parameter description
(1) RTT (Round-Trip Time): to put it simply, it is the time in which a Datagram goes back and forth between two points on the network. It is an important parameter that affects the performance of TCP and characterizes the operation of the network. Real-time and accurate measurement of RTT parameters of a large number of TCP devices and systems in the network is one of the important links of network management. Smokeping is such an automated test system, which sends various types of test packets to target devices and systems, measures, records, and displays RTT.
(2) Median RTT: it is the median, not the average. Smokeping has many types of probes, which, by default, send 20 probe packets to the target device every 300 seconds. If all 20 packets are returned, it records 20 RTT, then MedianRTT is the RTT; of the tenth packet. If five packets are lost, then MedianRTT is the RTT value of the eighth returned packet.
(3) Avg RTT: it is the arithmetic evaluation value of all RTT in each test round.
(4) Avg pkt loss: packet loss rate.
(5) Probe:100ICMP Echo Pings (56 Bytes) every300s each green dash is tested 100 times with ping in 300 seconds. Green shows the position of the middle number, and the other values in a turn are depicted in grayscale near it.
Next, let's deploy smokeping. First, turn off selinux, the firewall and turn off systemctl stopfirewalld.service.
The time synchronization method is as follows:
Yum install rdate-y
Vi/etc/sysconfig/clock
ZONE= "Asia/Shanghai"
Ln-sf/usr/share/zoneinfo/Asia/Shanghai / etc/localtime
/ usr/bin/rdate-stime.nist.gov
1. Install the dependency package
Yum groupinstall "Compatibility libraries"Base"Developmenttools"-y # installs the required components to ensure environmental consistency
Yum install-y perlperl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-IO-Socket-SSLperl-Socket6 perl-Time-HiRes perl-ExtUtils-MakeMaker rrdtool rrdtool-perlcurl httpd httpd-devel gcc make wget libxml2-devel libpng-devel glib pangopango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpllibart_lgpl-devel perl-CGI-SpeedyCGI perl-Sys-Syslog popt-devel libidn-develfping
2. Install smokeping-2.6.8.tar.gz
Wget http://pkgs.fedoraproject.org/repo/pkgs/smokeping/smokeping-2.6.8.tar.gz/md5/14a968daab2d17a27d41600077e3e967/smokeping-2.6.8.tar.gz
Tar xvfsmokeping-2.6.8.tar.gz
Cd smokeping-2.6.8
. / setup/build-perl-modules.sh/usr/local/smokeping/thirdparty
. / configure--prefix=/usr/local/smokeping
/ usr/bin/gmake install
/ usr/bin/gmake install # important installation twice
3. Configuration modification
Cd/usr/local/smokeping/
Mkdir cache datavar
Touch/var/log/smokeping.log
Chown apache:apachecache data var
Chown apache:apache/var/log/smokeping.log
Chmod 600/usr/local/smokeping/etc/smokeping_secrets.dist
Cd / usr/local/smokeping/htdocs
Mvsmokeping.fcgi.dist smokeping.fcgi
Cd/usr/local/smokeping/etc
Mv config.distconfig
4. Apache configuration modification
Modify the master configuration file
Vim/etc/httpd/conf/httpd.conf
DocumentRoot "/ var/www/html" = = > > DocumentRoot "/ usr/local/smokeping"
= = > >
Add somekping configuration
Vim/etc/httpd/conf.d/somekping.conf
Alias / cache "/ usr/local/smokeping/cache/"
Alias / cropper "/ usr/local/smokeping/htdocs/cropper/"
Alias / smokeping "/ usr/local/smokeping/htdocs/smokeping.fcgi"
AllowOverride None
Options All
AddHandlercgi-script .fcgi .cgi
Orderallow,deny
Allow from all
DirectoryIndexsmokeping.fcgi
Systemctl restarthttpd
Visit and test.
Up to this point, the smokeping is not ready for use and needs to be configured.
Vim/usr/local/smokeping/etc/config
Cgiurl = http://some.url/smokeping.cgi==>cgiurl = http://x.x.x.x/smokeping.cgi
# Note that x.x.x.x is native IP. Please modify it according to the actual situation.
Step = 300 = > step = 60
Pings = 20 = > pings = 10
# modify frequency
Delete default test data
+ Test
Menu= Targets
# parents = owner:/Test/James location:/
+ + James
Menu = James
Title = James
Alerts = someloss
Slaves = boomerslave2
Host = james.address
+ + MultiHost
Menu = Multihost
Title = James andJames as seen from Boomer
Host = / Test/James/Test/James~boomer
# # add the following data and save it
+ Other
Menu = three major network monitoring
Title = monitoring statistics
+ + dianxin
Menu = Telecom Network Monitoring
Title = telecom network monitoring list
# multi-graph#
Alerts = someloss
Host = / Other/dianxin/dianxin-bj / Other/dianxin/dianxin-tj / Other/dianxin/dianxin-sc/Other/dianxin/dianxin-sh / Other/dianxin/dianxin-gz
+ dianxin-bj
Menu = Beijing Telecom
Title = Beijing Telecom
Alerts = someloss
Host = 202.96.199.133
+ dianxin-tj
Menu = Tianjin Telecom
Title = Tianjin Telecom
Alerts = someloss
Host = 219.150.32.132
+ dianxin-sc
Menu = Sichuan Telecom
Title = Sichuan Telecom
Alerts = someloss
Host = 61.139.2.69
+ dianxin-sh
Menu = Shanghai Telecom
Title = Shanghai Telecom
Alerts = someloss
Host = 116.228.111.118
+ dianxin-gz
Menu = Guangdong Telecom
Title = Guangdong Telecom
Alerts = someloss
Host = 113.111.211.22
+ + liantong
Menu = Unicom network monitoring
Title = Unicom network monitoring list
Host = / Other/liantong/liantong-bj / Other/liantong/liantong-tj / Other/liantong/liantong-sc
/ Other/liantong/liantong-sh / Other/liantong/liantong-gz
+ liantong-bj
Menu = Beijing Unicom
Title = Beijing Unicom
Alerts = someloss
Host = 61.135.169.121
+ liantong-tj
Menu = Tianjin Unicom
Title = Tianjin Unicom
Alerts = someloss
Host = 202.99.96.68
+ liantong-sc
Menu = Sichuan Unicom
Title = Sichuan Unicom
Alerts = someloss
Host = 119.6.6.6
+ liantong-sh
Menu = Shanghai Unicom
Title = Shanghai Unicom
Alerts = someloss
Host = 210.22.84.3
+ liantong-gz
Menu = Guangdong Unicom
Title = Guangdong Unicom
Alerts = someloss
Host = 221.5.88.88
+ + yidong
Menu = Mobile Network Monitoring
Title = Mobile Network Monitoring list
Host = / Other/yidong/yidong-bj / Other/yidong/yidong-tj / Other/yidong/yidong-sc / Other/yidong/yidong-sh / Other/yidong/yidong-gz
+ yidong-bj
Menu = Beijing Mobile
Title = Beijing Mobile
Alerts = someloss
Host = 221.130.33.52
+ yidong-tj
Menu = Tianjin Mobile
Title = Tianjin Mobile
Alerts = someloss
Host = 211.137.160.5
+ yidong-sc
Menu = Sichuan Mobile
Title = Sichuan Mobile
Alerts = someloss
Host = 218.201.4.3
+ yidong-sh
Menu = Shanghai Mobile
Title = Shanghai Mobile
Alerts = someloss
Host = 117.131.19.23
+ yidong-gz
Menu = Guangdong Mobile
Title = Guangdong Mobile
Alerts = someloss
Host = 211.136.192.6
+ is the first layer, + + is the second layer, and + + is the third layer. Adding monitoring nodes must follow this specification.
At this time, if you start, there will be garbled code in Chinese, so solve it before starting.
Modification of character set
Vim/usr/local/smokeping/etc/config
* Presentation***
Charset = utf-8
# add charset = utf-8 under Presentation and then save and exit
Yum-y installwqy-zenhei-fonts # install font pack
Vim/usr/local/smokeping//lib/Smokeping/Graphs.pm
My $val = 0
For my $host (@ hosts) {
My ($graphret,$xs,$ys) = RRDs::graph
("dummy"
'--start', $tasks [0] [1]
'--end', $tasks [0] [2]
'--font TITLE:20 ", # add this line
"DEF:maxping=$cfg- > {General} {datadir} ${host} .rrd: median:AVERAGE"
'PRINT:maxping:MAX:%le')
My $ERROR = RRDs::error ()
Finally start smokeping
/ usr/local/smokeping/bin/smokeping
You can view Chinese by visiting it.
View the state of the network
Smokeping can easily view the state of the network being monitored:
(1) the delay and packet loss of the network can be seen in the figure.
(2) it has a Last 3 Hours,Last 30 Hours,Last 10 Days,Last 400 Days image, and you can view the image by entering a specific period of time, as follows:
(3) multi-graph draws the values of multiple monitoring points in one map to facilitate comparative analysis and overall condition statistics, as shown below:
(4) you can check "Top Packet Loss", "Top Max RoundtripTime", "Top Median RoundtripTime" and "Top Standard Deviation" under "Charts", so that you can easily judge where there is something wrong with the network, so that you can deal with it quickly. As shown in the following figure:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.