Install Smokeping in CentOS 6.5

Source: Internet
Author: User
Tags smokeping

Install Smokeping in CentOS 6.5

Smokeping is a monitoring software for network performance monitoring. It can be used to monitor the network conditions of the IDC in its own company, such as latency, packet loss rate, and BGP multiline, the network latency is displayed in a graphical manner, and the real-time communication of the network can be clearly determined,

Smokeping requires the support of multiple packages. Next we will install them one by one. Here we use the yum and compilation and installation methods. (There is a built-in yum package for direct yum, no compilation and installation)

Yum install-y perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl-IO-Socket-SSL perl-Socket6 perl-Time-HiRes perl-ExtUtils- makeMaker rrdtool-perl curl httpd-devel gcc make wget libxml2-devel libpng-devel glib pango-devel freetype-devel fontconfig cairo-devel libart_lgpl libart_lgpl-devel

Download fping and compile:

Wget http://fping.org/dist/fping-3.10.tar.gz

After decompression, directly configure & make install.

Download echoping and compile and install it:

Wget http://jaist.dl.sourceforge.net/project/echoping/echoping/6.0.2/echoping-6.0.2.tar.gz

Yum install-y popt

Yum install-y libidn (install two packages dependent on echoping)

After decompression, directly configure & make install.

Download smokeping

Http://download.csdn.net/download/fairplay_li/8711829

Decompress; cd smokeping-2.6.9

./Setup/build-perl-modules.sh/usr/local/smokeping/thirdparty

./Configure -- prefix =/usr/local/smokeping

/Usr/bin/gmake install

 

Configure smokeping as follows

cd /usr/local/smokeping/mkdir cache data vartouch /var/log/smokeping.log    chown apache:apache cache data varchown apache:apache /var/log/smokeping.logchmod 600 /usr/local/smokeping/etc/smokeping_secrets.distcd /usr/local/smokeping/htdocs mv smokeping.fcgi.dist smokeping.fcgicd /usr/local/smokeping/etcmv config.dist config 

Vim config

The main changes are as follows:

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

  *** Database ***   step    =  300 we recommend that you change the value to 60 and collect data once a minute.Vim/etc/httpd/conf/httpd. conf
Add as follows:
Alias /cache "/usr/local/smokeping/cache/"Alias /cropper "/usr/local/smokeping/htdocs/cropper/"Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"<Directory "/usr/local/smokeping">AllowOverride NoneOptions AllAddHandler cgi-script .fcgi .cgiOrder allow,denyAllow from allDirectoryIndex smokeping.fcgi</Directory>
To support Chinese, you need to install the Chinese Code: yum-y install wqy-zenhei-fonts.noarch
Vim/usr/local/smokeping/lib/Smokeping/Graphs. pm my ($ graphret, $ xs, $ ys) = RRDs: graph
("Dummy ",
'-- Start', $ tasks [0] [1],
'-- End', $ tasks [0] [2],
Add '-- font TITLE: 20: "WenQuanYi Zen Hei Mono "',
Set startup echo  "/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &"  >> /etc/rc.local
 Enter the IP address library of the monitoring source in config.
+ Othermenu = three major network monitoring titles = Monitoring Statistics + + dianxinmenu = Telecom Network Monitoring title = Telecom Network Monitoring List host =/Other/dianxin-bj/Other/dianxin- hlj/Other/dianxin-tj/Other/dianxin-SC/Other/dianxin-sh/Other/dianxin-gz ++ dianxin-bj menu = Beijing Telecom title = Beijing Telecom alerts = somelosshost = 202.96.199.133 ++ dianxin-hlj menu = Heilongjiang Telecom title = Heilongjiang Telecom alerts = somelosshost = Beijing ++ dianxin-tjmenu = Tianjin Telecom title = Tianjin Telecom alerts = somelosshost = 219.150.32.132 ++ dianxin-SC menu = Sichuan Telecom title = Sichuan Telecom alerts = somelosshost = 61.139.2.69 ++ dianxin-sh menu = Shanghai Telecom title = shanghai Telecom alerts = somelosshost = Shanghai ++ dianxin-gz menu = Guangdong Telecom title = Guangdong Telecom alerts = somelosshost = 113.111.211.22 + + liw.gmenu = China Unicom network monitoring title = China Unicom network monitoring list host =/Other/liyung-bj/Other/liyung-hlj/Other/liyung-tj/Other/liyung-SC/Other/liyung- sh/Other/liw.g-gz ++ liw.g-bj menu = Beijing Unicom title = Beijing Unicom alerts = somelosshost = 61.135.169.121 ++ limelg-hlj menu = Heilongjiang Unicom title = heilongjiang Unicom alerts = somelosshost = Unicom ++ liw.g-tjmenu = Tianjin Unicom title = Tianjin Unicom alerts = somelosshost = 202.99.96.68 ++ limelosshost = Sichuan UNICOM title = Sichuan UNICOM alerts = somelosshost = 119.6.6.6 ++ liw.g-sh menu = Shanghai Unicom title = Shanghai Unicom alerts = somelosshost = 210.22.84.3 ++ liw.g-gz menu = Guangdong Unicom title = Guangdong Unicom alerts = somelosshost = 221.5.88.88 ++ yidong menu = Mobile Network Monitoring title = Mobile Network Monitoring List host =/Other/yidong-bj/Other/yidong-hlj/Other/yidong -tj/Other/yidong-SC/Other/yidong-sh/Other/yidong-gz ++ yidong-bj menu = Beijing Mobile title = Beijing Mobile alerts = somelosshost = platform ++ yidong-hlj menu = Heilongjiang mobile title = Heilongjiang mobile alerts = somelosshost = 211.137.241.35 ++ yidong-tjmenu = Tianjin mobile title = Tianjin mobile alerts = somelosshost = Sichuan Mobile title = Sichuan Mobile alerts = somelosshost = 218.201.4.3 ++ yidong-sh menu = Shanghai Mobile title = Shanghai Mobile alerts = somelosshost = 117.131.19.23 ++ yidong-gz menu = Guangdong mobile title = Guangdong mobile alerts = somelosshost = 211.136.192.6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.