怎么在悉尼做网站,wordpress调用分类目录名称,免费网站加速服务,商城网站怎么做的如何的使用smokeping来监控idc机房的网络质量情况#xff0c;从监控图上的延时与丢包能分辨出你机房的网络是否稳定#xff0c;是否为多线#xff0c;是否为BGP机房#xff0c;到各城市的3个运行商网络各是什么情况#xff0c;如果出现问题#xff0c;如果有针对的解决。… 如何的使用smokeping来监控idc机房的网络质量情况从监控图上的延时与丢包能分辨出你机房的网络是否稳定是否为多线是否为BGP机房到各城市的3个运行商网络各是什么情况如果出现问题如果有针对的解决。而且如果选择新机房的时候你可以根据smokeping的监控结果来判断这个机房是否适合。 图表参数说明1 RTT(Round-Trip Time)简单说它是一个数据报在网络上两点中间往返一次的时间。是影响TCP性能和表征网络运行状况的重要参数。在网络中实时、准确地测量大量TCP设备和系统的RTT参数是网络管的重要环节之一。Smokeping就是这样的自动测试系统它向目标设备和系统发送各种类型的测试数据包测量、记录和展示RTT。2 Median RTT它是中间数并不是平均值。Smokeping有多种类型的探针探针在默认的设置下每300秒向目标设备发送20测探测数据包。假如这20个数据包都返回的话它就记录下了20个RTT那么Median RTT就是第十个包的RTT如果有5个包丢失的话那么MedianRTT就是第八个返回的包的RTT值。3 Avg RTT它是每一个测试回合中所有RTT的算术评价值。4 Avg pkt loss丢包率。5 Probe:100ICMP Echo Pings(56 Bytes)every300s每一个绿色的短横线都是一个测试回合300秒内用ping测试100次。绿色画出的是中间数的位置一个回合中的其它值都在它附近被以灰度的形式被刻画 下面来部署一下smokeping首先把selinux防火墙关闭掉systemctl stopfirewalld.service 时间同步方式如下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、安装依赖包yum groupinstallCompatibility libraries Base Developmenttools -y #安装需要的组件保证环境一致性 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、安装smokeping-2.6.8.tar.gzwgethttp://pkgs.fedoraproject.org/repo/pkgs/smokeping/smokeping-2.6.8.tar.gz/md5/14a968daab2d17a27d41600077e3e967/smokeping-2.6.8.tar.gztar xvfsmokeping-2.6.8.tar.gzcd 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 #重要的安装来两遍 3、配置修改 cd/usr/local/smokeping/mkdir cache datavartouch/var/log/smokeping.logchown apache:apachecache data varchown apache:apache/var/log/smokeping.logchmod 600/usr/local/smokeping/etc/smokeping_secrets.distcd /usr/local/smokeping/htdocsmvsmokeping.fcgi.dist smokeping.fcgicd/usr/local/smokeping/etcmv config.distconfig 4、apache配置修改 修改主配置文件vim/etc/httpd/conf/httpd.confDocumentRoot/var/www/html DocumentRoot /usr/local/smokepingDirectory/var/www/html Directory/usr/local/smokeping 增加somekping配置vim/etc/httpd/conf.d/somekping.confAlias /cache/usr/local/smokeping/cache/Alias /cropper/usr/local/smokeping/htdocs/cropper/Alias /smokeping/usr/local/smokeping/htdocs/smokeping.fcgiDirectory/usr/local/smokepingAllowOverride NoneOptions AllAddHandlercgi-script .fcgi .cgiOrderallow,deny Allow from all DirectoryIndexsmokeping.fcgi/Directorysystemctl restarthttpd 访问测试一下 到此smokeping搭建完毕现在还不能正常使用需要进行配置。 vim/usr/local/smokeping/etc/config cgiurl http://some.url/smokeping.cgicgiurl http://x.x.x.x/smokeping.cgi #注意x.x.x.x为本机IP请根据实际情况进行修改step 300 step 60pings 20 pings 10 #修改频率删除默认的test数据 Testmenu Targets#parents owner:/Test/James location:/ James menu Jamestitle Jamesalerts somelossslaves boomerslave2host james.address MultiHost menu Multihosttitle James andJames as seen from Boomerhost /Test/James/Test/James~boomer ##添加如下数据并保存 Othermenu 三大网络监控title 监控统计 dianxinmenu 电信网络监控title 电信网络监控列表 ###multi-graph#####alerts somelosshost /Other/dianxin/dianxin-bj /Other/dianxin/dianxin-tj /Other/dianxin/dianxin-sc/Other/dianxin/dianxin-sh /Other/dianxin/dianxin-gz dianxin-bjmenu 北京电信title 北京电信alerts somelosshost 202.96.199.133 dianxin-tjmenu 天津电信title 天津电信alerts somelosshost 219.150.32.132 dianxin-scmenu 四川电信title 四川电信alerts somelosshost 61.139.2.69 dianxin-shmenu 上海电信title 上海电信alerts somelosshost 116.228.111.118 dianxin-gzmenu 广东电信title 广东电信alerts somelosshost 113.111.211.22 liantongmenu 联通网络监控title 联通网络监控列表host /Other/liantong/liantong-bj /Other/liantong/liantong-tj /Other/liantong/liantong-sc /Other/liantong/liantong-sh /Other/liantong/liantong-gz liantong-bjmenu 北京联通title 北京联通alerts somelosshost 61.135.169.121 liantong-tjmenu 天津联通title 天津联通alerts somelosshost 202.99.96.68 liantong-scmenu 四川联通title 四川联通alerts somelosshost 119.6.6.6 liantong-shmenu 上海联通title 上海联通alerts somelosshost 210.22.84.3 liantong-gzmenu 广东联通title 广东联通alerts somelosshost 221.5.88.88 yidongmenu 移动网络监控title 移动网络监控列表host /Other/yidong/yidong-bj /Other/yidong/yidong-tj /Other/yidong/yidong-sc /Other/yidong/yidong-sh /Other/yidong/yidong-gz yidong-bjmenu 北京移动title 北京移动alerts somelosshost 221.130.33.52 yidong-tjmenu 天津移动title 天津移动alerts somelosshost 211.137.160.5 yidong-scmenu 四川移动title 四川移动alerts somelosshost 218.201.4.3 yidong-shmenu 上海移动title 上海移动alerts somelosshost 117.131.19.23 yidong-gzmenu 广东移动title 广东移动alerts somelosshost 211.136.192.6是第一层是第二层 是第三层添加监控节点一定要按照此规范此时如果启动的话中文会出现乱码情况,所以先解决再启动 字符集的修改vim/usr/local/smokeping/etc/config*** Presentation***charset utf-8 #在Presentation 下添加charset utf-8然后保存退出yum -y installwqy-zenhei-fonts #安装字体包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, #增加这一行 DEF:maxping$cfg-{General}{datadir}${host}.rrd:median:AVERAGE, PRINT:maxping:MAX:%le ); my $ERROR RRDs::error(); 最后启动smokeping/usr/local/smokeping/bin/smokeping访问即可查看中文 查看网络状况Smokeping可以方便地查看所监控的网络状况1可以很具体在图上看出网络的延迟及丢包等状况2具有Last 3 HoursLast 30 HoursLast 10 DaysLast 400 Days图像还可以通过输入具体的时段来查看图像如下所示: 3 multi-graph在一张图里面画上多个监测点的数值方便对照分析以及整体状况统计如下所示 4在“Charts”下可以查看“Top Packet Loss”“Top Max RoundtripTime”“Top Median Roundtrip Time”“Top Standard Deviation”情况这样可以相当方便地判断哪里的网络有问题从而可以快速地作出处理。如下图所示 转载于:https://blog.51cto.com/chenshoubiao/1881708