真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

smokeping自動(dòng)檢測(cè)系統(tǒng)

 

清水河ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書未來市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書合作)期待與您的合作!

 

如何的使用smokeping來監(jiān)控idc機(jī)房的網(wǎng)絡(luò)質(zhì)量情況,從監(jiān)控圖上的延時(shí)與丟包能分辨出你機(jī)房的網(wǎng)絡(luò)是否穩(wěn)定,是否為多線,是否為BGP機(jī)房,到各城市的3個(gè)運(yùn)行商網(wǎng)絡(luò)各是什么情況,如果出現(xiàn)問題,如果有針對(duì)的解決。而且如果選擇新機(jī)房的時(shí)候,你可以根據(jù)smokeping的監(jiān)控結(jié)果來判斷這個(gè)機(jī)房是否適合。

 

圖表參數(shù)說明

(1) RTT(Round-Trip Time):簡(jiǎn)單說它是一個(gè)數(shù)據(jù)報(bào)在網(wǎng)絡(luò)上兩點(diǎn)中間往返一次的時(shí)間。是影響TCP性能和表征網(wǎng)絡(luò)運(yùn)行狀況的重要參數(shù)。在網(wǎng)絡(luò)中實(shí)時(shí)、準(zhǔn)確地測(cè)量大量TCP設(shè)備和系統(tǒng)的RTT參數(shù)是網(wǎng)絡(luò)管的重要環(huán)節(jié)之一。Smokeping就是這樣的自動(dòng)測(cè)試系統(tǒng),它向目標(biāo)設(shè)備和系統(tǒng)發(fā)送各種類型的測(cè)試數(shù)據(jù)包,測(cè)量、記錄和展示RTT。

(2) Median RTT:它是中間數(shù)并不是平均值。Smokeping有多種類型的探針,探針在默認(rèn)的設(shè)置下,每300秒向目標(biāo)設(shè)備發(fā)送20測(cè)探測(cè)數(shù)據(jù)包。假如這20個(gè)數(shù)據(jù)包都返回的話,它就記錄下了20個(gè)RTT,那么Median RTT就是第十個(gè)包的RTT;如果有5個(gè)包丟失的話,那么MedianRTT就是第八個(gè)返回的包的RTT值。

(3) Avg RTT:它是每一個(gè)測(cè)試回合中所有RTT的算術(shù)評(píng)價(jià)值。

(4) Avg pkt loss:丟包率。

(5) Probe:100ICMP Echo Pings(56 Bytes)every300s每一個(gè)綠色的短橫線都是一個(gè)測(cè)試回合300秒內(nèi)用ping測(cè)試100次。綠色畫出的是中間數(shù)的位置,一個(gè)回合中的其它值都在它附近被以灰度的形式被刻畫;

 

 

下面來部署一下smokeping,首先把selinux,防火墻關(guān)閉掉systemctl stopfirewalld.service

 

時(shí)間同步方式如下:

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 groupinstall"Compatibility libraries" "Base" "Developmenttools" -y    #安裝需要的組件,保證環(huán)境一致性

 

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.gz

wgethttp://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    #重要的安裝來兩遍

 

3、配置修改

 

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配置修改

 

修改主配置文件

vim/etc/httpd/conf/httpd.conf

DocumentRoot"/var/www/html" ==>>DocumentRoot "/usr/local/smokeping"

==>>

 

增加somekping配置

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

 

訪問測(cè)試一下

 

smokeping自動(dòng)檢測(cè)系統(tǒng)

 

到此smokeping搭建完畢,現(xiàn)在還不能正常使用,需要進(jìn)行配置。

 

 

vim/usr/local/smokeping/etc/config

cgiurl   = http://some.url/smokeping.cgi==>cgiurl   =http://x.x.x.x/smokeping.cgi

#注意x.x.x.x為本機(jī)IP請(qǐng)根據(jù)實(shí)際情況進(jìn)行修改

step     = 300    ==>     step     = 60

pings    = 20     ==>     pings   = 10

 

#修改頻率

刪除默認(rèn)的test數(shù)據(jù)

 

+ 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

 

 

##添加如下數(shù)據(jù)并保存

+ Other

menu = 三大網(wǎng)絡(luò)監(jiān)控

title = 監(jiān)控統(tǒng)計(jì)

 

++ dianxin

menu = 電信網(wǎng)絡(luò)監(jiān)控

title = 電信網(wǎng)絡(luò)監(jiān)控列表

 

###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 = 北京電信

title = 北京電信

alerts = someloss

host =202.96.199.133

+++ dianxin-tj

menu = 天津電信

title = 天津電信

alerts = someloss

host =219.150.32.132

+++ dianxin-sc

menu = 四川電信

title = 四川電信

alerts = someloss

host = 61.139.2.69

+++ dianxin-sh

menu = 上海電信

title = 上海電信

alerts = someloss

host =116.228.111.118

+++ dianxin-gz

menu = 廣東電信

title = 廣東電信

alerts = someloss

host =113.111.211.22

++ liantong

menu = 聯(lián)通網(wǎng)絡(luò)監(jiān)控

title = 聯(lián)通網(wǎng)絡(luò)監(jiān)控列表


host = /Other/liantong/liantong-bj /Other/liantong/liantong-tj /Other/liantong/liantong-sc 

/Other/liantong/liantong-sh /Other/liantong/liantong-gz


+++ liantong-bj

menu = 北京聯(lián)通

title = 北京聯(lián)通

alerts = someloss

host =61.135.169.121

+++ liantong-tj

menu = 天津聯(lián)通

title = 天津聯(lián)通

alerts = someloss

host = 202.99.96.68

+++ liantong-sc

menu = 四川聯(lián)通

title = 四川聯(lián)通

alerts = someloss

host = 119.6.6.6

+++ liantong-sh

menu = 上海聯(lián)通

title = 上海聯(lián)通

alerts = someloss

host = 210.22.84.3

+++ liantong-gz

menu = 廣東聯(lián)通

title = 廣東聯(lián)通

alerts = someloss

host = 221.5.88.88

++ yidong

menu = 移動(dòng)網(wǎng)絡(luò)監(jiān)控

title = 移動(dòng)網(wǎng)絡(luò)監(jiān)控列表


host = /Other/yidong/yidong-bj /Other/yidong/yidong-tj  /Other/yidong/yidong-sc  /Other/yidong/yidong-sh /Other/yidong/yidong-gz


+++ yidong-bj

menu = 北京移動(dòng)

title = 北京移動(dòng)

alerts = someloss

host =221.130.33.52

+++ yidong-tj

menu = 天津移動(dòng)

title = 天津移動(dòng)

alerts = someloss

host =211.137.160.5

+++ yidong-sc

menu = 四川移動(dòng)

title = 四川移動(dòng)

alerts = someloss

host = 218.201.4.3

+++ yidong-sh

menu = 上海移動(dòng)

title = 上海移動(dòng)

alerts = someloss

host =117.131.19.23

+++ yidong-gz

menu = 廣東移動(dòng)

title = 廣東移動(dòng)

alerts = someloss

host =211.136.192.6

+是第一層,++是第二層,+++ 是第三層,添加監(jiān)控節(jié)點(diǎn)一定要按照此規(guī)范

此時(shí)如果啟動(dòng)的話中文會(huì)出現(xiàn)亂碼情況,所以先解決再啟動(dòng)

 

 

字符集的修改

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();

 

 

最后啟動(dòng)smokeping

/usr/local/smokeping/bin/smokeping

訪問即可查看中文

smokeping自動(dòng)檢測(cè)系統(tǒng)

 

 

查看網(wǎng)絡(luò)狀況

Smokeping可以方便地查看所監(jiān)控的網(wǎng)絡(luò)狀況:

(1)可以很具體在圖上看出網(wǎng)絡(luò)的延遲及丟包等狀況;

(2)具有Last 3 Hours,Last 30 Hours,Last 10 Days,Last 400 Days圖像,還可以通過輸入具體的時(shí)段來查看圖像,如下所示:

 

smokeping自動(dòng)檢測(cè)系統(tǒng)

(3) multi-graph在一張圖里面畫上多個(gè)監(jiān)測(cè)點(diǎn)的數(shù)值,方便對(duì)照分析以及整體狀況統(tǒng)計(jì),如下所示:

smokeping自動(dòng)檢測(cè)系統(tǒng)

 

(4)在“Charts”下可以查看“Top Packet Loss”,“Top Max RoundtripTime”,“Top Median Roundtrip Time”,“Top Standard Deviation”情況,這樣可以相當(dāng)方便地判斷哪里的網(wǎng)絡(luò)有問題,從而可以快速地作出處理。如下圖所示:

smokeping自動(dòng)檢測(cè)系統(tǒng)

 


文章標(biāo)題:smokeping自動(dòng)檢測(cè)系統(tǒng)
標(biāo)題路徑:http://weahome.cn/article/pdecee.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部