您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 网络性能监测软件smokeping的搭建
CentOS6.5下Smokeping安装Smokeping是一款用于网络性能监测的监控软件,通过它可以在自己公司IDC的网络状况,如延时,丢包率,是否BGP多线等,通过rrdtool制图方式,图形化地展示网络的时延情况,进而能够清楚的判断出网络的即时通信情况,Smokeping需要多个包的支持,下面我们逐个安装,这里通过yum和编译安装两种方式。(有内置yum包直接yum,没有的编译安装)yuminstall-yperlperl-Net-Telnetperl-Net-DNSperl-LDAPperl-lib并编译:wget解压缩后,直接configure&&make&&makeinstall即可下载echoping并编译安装:wget(安装两个echoping依赖的包)解压缩后,直接configure&&make&&makeinstall即可下载smokeping解压;cdsmokeping-2.6.9./setup/build-perl-modules.sh/usr/local/smokeping/thirdparty./configure--prefix=/usr/local/smokeping/usr/bin/gmakeinstall以下开始配置smokeping[plain]viewplaincopy1.cd/usr/local/smokeping/2.mkdircachedatavar3.touch/var/log/smokeping.log4.chownapache:apachecachedatavar5.chownapache:apache/var/log/smokeping.log6.chmod600/usr/local/smokeping/etc/smokeping_secrets.dist7.cd/usr/local/smokeping/htdocs8.mvsmokeping.fcgi.distsmokeping.fcgi9.cd/usr/local/smokeping/etc10.mvconfig.distconfigvimconfig主要修改如下内容:cgiurl=***Database***step=300此处建议改为60,一分钟采集一次数据vim/etc/httpd/conf/httpd.conf添加如下:[plain]viewplaincopy1.Alias/cache/usr/local/smokeping/cache/2.Alias/cropper/usr/local/smokeping/htdocs/cropper/3.Alias/smokeping/usr/local/smokeping/htdocs/smokeping.fcgi4.Directory/usr/local/smokeping5.AllowOverrideNone6.OptionsAll7.AddHandlercgi-script.fcgi.cgi8.Orderallow,deny9.Allowfromall10.DirectoryIndexsmokeping.fcgi11./Directory如果需要支持中文,需要安装中文编码:yum-yinstallwqy-zenhei-fonts.noarchvim/usr/local/smokeping/lib/Smokeping/Graphs.pmmy($graphret,$xs,$ys)=RRDs::graph(dummy,'--start',$tasks[0][1],'--end',$tasks[0][2],后,添加'--fontTITLE:20:WenQuanYiZenHeiMono',设置开机启动echo/usr/local/smokeping/bin/smokeping--logfile=/var/log/smokeping.log2&1&/etc/rc.local监测源的IP库,填入到config中[plain]viewplaincopy1.+Other2.menu=三大网络监控3.title=监控统计4.++dianxin5.menu=电信网络监控6.title=电信网络监控列表7.host=/Other/dianxin/dianxin-bj/Other/dianxin/dianxin-hlj/Other/dianxin/dianxin-tj/Other/dianxin/dianxin-sc/Other/d8.ianxin/dianxin-sh/Other/dianxin/dianxin-gz9.+++dianxin-bj10.menu=北京电信11.title=北京电信12.alerts=someloss13.host=202.96.199.13314.15.+++dianxin-hlj16.menu=黑龙江电信17.title=黑龙江电信18.alerts=someloss19.host=219.147.198.24220.21.+++dianxin-tj22.menu=天津电信23.title=天津电信24.alerts=someloss25.host=219.150.32.13226.27.+++dianxin-sc28.menu=四川电信29.title=四川电信30.alerts=someloss31.host=61.139.2.6932.33.+++dianxin-sh34.menu=上海电信35.title=上海电信36.alerts=someloss37.host=116.228.111.11838.39.+++dianxin-gz40.menu=广东电信41.title=广东电信42.alerts=someloss43.host=113.111.211.2244.45.++liantong46.menu=联通网络监控47.title=联通网络监控列表48.host=/Other/liantong/liantong-bj/Other/liantong/liantong-hlj/Other/liantong/liantong-tj/Other/liantong/liantong-sc49./Other/liantong/liantong-sh/Other/liantong/liantong-gz50.51.+++liantong-bj52.menu=北京联通53.title=北京联通54.alerts=someloss55.host=61.135.169.12156.57.+++liantong-hlj58.menu=黑龙江联通59.title=黑龙江联通60.alerts=someloss61.host=202.97.224.6962.63.+++liantong-tj64.menu=天津联通65.title=天津联通66.alerts=someloss67.host=202.99.96.6868.69.+++liantong-sc70.menu=四川联通71.title=四川联通72.alerts=someloss73.host=119.6.6.674.75.+++liantong-sh76.menu=上海联通77.title=上海联通78.alerts=someloss79.host=210.22.84.380.81.+++liantong-gz82.menu=广东联通83.title=广东联通84.alerts=someloss85.host=221.5.88.8886.87.++yidong88.menu=移动网络监控89.title=移动网络监控列表90.host=/Other/yidong/yidong-bj/Other/yidong/yidong-hlj/Other/yidong/yidong-tj/Other/yidong/yidong-sc/Other/yidong/yi91.dong-sh/Other/yidong/yidong-gz92.93.+++yidong-bj94.menu=北京移动95.title=北京移动96.alerts=someloss97.host=221.130.33.5298.99.+++yidong-hlj100.menu=黑龙江移动101.title=黑龙江移动102.alerts=someloss103.host=211.137.241.35104.105.+++yidong-tj106.menu=天津移动107.title=天津移动108.alerts=someloss109.host=211.137.160.5110.111.+++yidong-sc112.menu=四川移动113.title=四川移动114.alerts=someloss115.host=218.201.4.3116.117.+++yidong-sh118.menu=上海移动119.title=上海移动120.alerts=someloss121.host=117.131.19.23122.123.+++yidong-gz124.menu=广东移动125.title=广东移动126.alerts=someloss127.host=211.136.192.6
本文标题:网络性能监测软件smokeping的搭建
链接地址:https://www.777doc.com/doc-2071550 .html