Centos6.5 build the smokeping Service

Source: Internet
Author: User
Tags smokeping

Centos6.5 build the smokeping Service

1. Install the required software package.

Yuminstall-yperlperl-Net-Telnetperl-Net-DNSperl-LDAPperl-libwww-perlperl-IO-Socket-SSLperl-Socket6perl-Time-HiResperl-ExtUtils-MakeMakerrrdtoolrrdtool-perlcurlhttpdhttpd-develgccmakewgetlibxml2-devellibpng-develglibpangopango-develfreetypefreetype-develfontconfigcairocairo-devellibart_lgpllibart_lgpl-develpoptpopt-devellibidnlibidn-devel

2. Create a common directory for storing software packages.

Mkdir/smokeping/tools-p

3. Download, decompress, compile, and install the fping software package.

Wgethttp: // response ..

4. Download echoping, decompress it, compile and install it.

Wgethttp: // response

5. Download smokeping, decompress it, compile and install it.

Wgethttp: // oss. oetiker. ch/smokeping/pub/smokeping-2.6.9.tar.gztar-zxvfsmokeping-2.6.9.tar.gzcdsmokeping-2.6.9 /. /setup/build-perl-modules.sh/usr/local/smokeping/thirdparty. /configure -- prefix =/usr/local/smokepinggmakeinstall

6. Create three file directories and one log file, and set the owner and group to apache.

Cd/usr/local/smokeping/mkdir {cache, data, var} touch/var/log/smokeping. logchownapache. apache/var/log/smokeping. logchmod600/usr/local/smoke/etc/smokeping_secrets.distchown-Rapache.apachedata/chown-Rapache.apachevar/chown-Rapache.apachecache/

7. Modify the corresponding configuration file.

Cd/usr/local/smokeping/htdocs/mvsmokeping. fcgi. distsmokeping. fcgicd/usr/local/smokeping/etc/mvconfig. distconfig

8. Configure the apache configuration file and the smokeping configuration file.

In/etc/httpd/conf/httpd. add the following lines at the end of con: 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 "> AllowOverrideNoneOptionsAllAddHandlercgi-script.fcgi.cgiOrderallow, denyAllowfromallDirectoryIndexsmokeping. the fcgi </Directory> smokeping configuration file is as follows: cat/usr/local/smokeping/etc/config *** Gener Al *** owner = PeterRandomcontact = some@address.nowheremailhost = my. mail. hostsendmail =/usr/sbin/sendmail # NOTE: donotputtheImageCachebelowcgi-bin # sinceallfilesundercgi-binwillbeexecuted... thisisnot # goodforimages. imgcache =/usr/local/smokeping/cacheimgurl = cachedatadir =/usr/local/smokeping/datapiddir =/usr/local/smokeping/varcgiurl = http: // smoke/smokeping. cgismokemail =/usr/local/smokeping/etc/smokemail. Disttmail =/usr/local/smokeping/etc/tmail. dist # threads = local0 # eachprobeisnowruninitsownprocess # threads # concurrentprobes = no *** Alerts *** to = alertee@address.somewherefrom = smokealert@company.xy + somelosstype = loss # inpercentpattern => 0%, * 12 *,> 0%, * 12 *,> 0% comment = loss3timesinarow *** Database *** step = 300 pings = 20 # consfnmrhbstepstotalAVERAGE0.511008 AVERAGE0.5124320MIN0.5124320MAX0.5124320AVERAGE0.5144720MAX0.5144720MIN0.5144720 *** Presentation *** template =/usr/local/smokeping/etc/basepage.html. distcharset = UTF-8 + chartsmenu = Chartstitle = character ++ stddevsorter = StdDev (entries => 4) title = character = StandardDeviation % f ++ maxsorter = Max (entries => 5) title = TopMaxRoundtripTimemenu = byMaxformat = MaxRoundtrip Time % fseconds ++ losssorter = Loss (entries => 5) title = TopPacketLossmenu = Lossformat = PacketsLost % f ++ mediansorter = Median (entries => 5) title = bytes = byMedianformat = MedianRTT % fseconds + overviewwidth = 600 height = 50 range = 10 h + detailwidth = 600 height = 2 "Last3Hours" 3 h "Last30Hours" 30 h" last10Days "10d" Last400Days "400d # + hierarchies # ++ owner # title = HostOwner # ++ location # title = Location *** Pro Bes *** + FPingbinary =/usr/local/sbin/fping *** Slaves *** secrets =/usr/local/smokeping/etc/smokeping_secrets.dist + boomerdisplay_name = boomercolor = 0000ff + slave2display_name = anothercolor = 00ff00 *** Targets *** probe = FPingmenu = Toptitle = NetworkLatencyGrapherremark = WelcometotheSmokePingwebsiteofxxxCompany. \ Hereyouwilllearnallaboutthelatencyofournetwork. + Testmenu = Targets # parents = owner:/Test/Jameslocation:/+ Jamesm Enu = Jamestitle = Jamesalerts = somelossslaves = boomerslave2host = james. address ++ MultiHostmenu = Multihosttitle = JamesandJamesasseenfromBoomerhost =/Test/James ~ Boomer ++ Localhostmenu = Localhosttitle = Localhostalerts = someloss # slaves = boomerslave2host = 10.104.96.155 + Othermenu = network and node monitoring title = Monitoring Statistics + + dianxinmenu = Telecommunication Network Monitoring title = Telecommunication Network Monitoring List host =/Other/dianxin-bj/Other/dianxin-sh/Other/dianxin-gz/Other/dianxin-sz/Other/dianxin -tj/Other/dianxin-sy/Other/dianxin-xa/Other/dianxin-jn/Other/dianxin-cd/Other/dianxin -hf/Other/dianxin-wh/Other/dianxin-zz/Other/dianxin-cs/Other/dianxin-nj/Other/dianxin -hz/Other/dianxin-xm/Other/dianxin-nn/Other/dianxin-ty/Other/dianxin-cc/Other/dianxin -lz/Other/dianxin-nn/Other/dianxin-xn/Other/dianxin-hk/Other/dianxin-fz/Other/dianxin -gy/Other/dianxin-km/Other/dianxin-xj/Other/dianxin-xz/Other/dianxin-heb/Other/dianxin -hhilbert ++ dianxin-bjmenu = Beijing Telecom title = Beijing Telecom alerts = somelosshost = Beijing ++ dianxin-shmenu = Shanghai Telecom title = Shanghai Telecom alerts = somelosshost = 202.96.209.20.++ + dianxin-gzmenu = Guangzhou Telecom title = Guangzhou Telecom alerts = somelosshost = Shanghai ++ dianxin-szmenu = Shenzhen Telecom title = Shenzhen Telecom alerts = somelosshost = 202.96.154.15 ++ dianxin-tjmenu = Tianjin Telecom title = Tianjin Telecom alerts = somelosshost = Beijing ++ dianxin-symenu = Shenyang Telecom title = Shenyang Telecom alerts = somelosshost = 219.148.204.66 ++ dianxin-xamenu = Xi'an Telecom title = Xi'an Telecom alerts = somelosshost = 117.35.68.4 ++ dianxin-jnmenu = Jinan Telecom title = Jinan Telecom alerts = somelosshost = Beijing ++ dianxin-cdmenu = Chengdu Telecom title = Chengdu Telecom alerts = somelosshost = 61.139.2.69 ++ dianxin-hfmenu = Hefei Telecom title = Hefei Telecom alerts = somelosshost = Beijing ++ dianxin-whmenu = Wuhan Telecom title = Wuhan Telecom alerts = somelosshost = Beijing ++ dianxin-zzmenu = Zhengzhou Telecom title = Zhengzhou Telecom alerts = somelosshost = 123.52.19.15 ++ dianxin-csmenu = Changsha Telecom title = Changsha Telecom alerts = somelosshost = Shanghai ++ dianxin -njmenu = Nanjing Telecom title = Nanjing Telecom alerts = somelosshost = 218.2.135.1 ++ dianxin-hzmenu = Hangzhou Telecom title = Hangzhou Telecom alerts = somelosshost = Beijing ++ dianxin-xmmenu = Xiamen china Telecom title = Xiamen Telecom alerts = somelosshost = 202.101.103.54 ++ dianxin-nnmenu = Nanning Telecom title = Nanning Telecom alerts = somelosshost = Beijing ++ dianxin-tymenu = Taiyuan Telecom title = Taiyuan alerts = somelosshost = Beijing ++ dianxin-ccmenu = Changchun Telecom title = Changchun Telecom alerts = somelosshost = Beijing ++ dianxin-lzmenu = Lanzhou Telecom title = Lanzhou Telecom alerts = somelosshost = region ++ dianxin-ncmenu = Nanchang Telecom title = Nanchang Telecom alerts = somelosshost = region ++ dianxin-xnmenu = Xining Telecom title = Xining Telecom alerts = somelosshost = 202.100.138.68 ++ + dianxin-hkmenu = Haikou Telecom title = Haikou Telecom alerts = somelosshost = 202.100.192.1 ++ dianxin-fzmenu = Fuzhou Telecom title = Fuzhou Telecom alerts = somelosshost = Beijing ++ dianxin-gymenu = Guiyang Telecom title = Guiyang Telecom alerts = somelosshost = Beijing ++ dianxin-kmmenu = Kunming Telecom title = Kunming Telecom alerts = somelosshost = 222.172.200.68 ++ dianxin-xjmenu = Xinjiang Telecom title = Xinjiang Telecom alerts = somelosshost = 61.128.114.133 ++ dianxin-xzmenu = Tibet Telecom title = Tibet Telecom alerts = somelosshost = Beijing ++ dianxin-hebmenu = Harbin Telecom title = Harbin Telecom alerts = somelosshost = 219.150.32.132 ++ dianxin-hhhtmenu = Hohhot Telecom title = Hohhot Telecom alerts = somelosshost = 121.56.12.12 ++ libaigmenu = China Unicom network monitoring title = China Unicom network monitoring list host =/Other/ liw.g/liw.g-bj/Other/liw.g/liyung-sh/Other/liyung-gz/Other/liyung-sz/Other/liyung-tj/Other/ lig g/liantong-sy/Other/liantong/liyung-xa/Other/liyung-jn/Other/liyung-qd/Other/liyung-cd/Other/ liyun g/liyun G-ah/Other/liyun g/liyun G-wh/Other/liyun g/liyun G-zz/Other/liyun g/liyun G-cs/Other/liyun g/liyun G-nj/Other/ lig g/liantong-hz/Other/liantong/liyung-xm/Other/liyung-nn/Other/liyung-nc/Other/liyung-ty/Other/ liyun g/liyun G-xn/Other/liyun g/liyun G-gz/Other/li Yun g/liyun G-fz/Other/liyun g/liyun G-lz/Other/liyun g/liyun G-km/Other /liw.g/liyung-xj/Other/liyung-xz/Other/liyung-heb/Other/liyung-hhuang + ++ liyung-bjmenu = Beijing Unicom title = Beijing Unicom alerts = somelosshost = 202.106.196.253 ++ liw.g-shmenu = Shanghai Unicom title = Shanghai Unicom alerts = somelosshost = Shanghai ++ liw.g-gzmenu = Guangzhou Unicom title = Guangzhou Unicom alerts = somelosshost = 221.4.66.66 ++ liw.g-szmenu = Shenzhen Unicom title = Shenzhen Unicom alerts = somelosshost = Beijing ++ liw.g-tjmenu = Tianjin Unicom title = Tianjin Unicom alerts = somelosshost = Beijing ++ liw.g-symenu = Shenyang Unicom title = Shenyang Unicom alerts = somelosshost = Beijing ++ listmg-xamenu = Xi'an Unicom title = Xi'an Unicom alerts = somelosshost = 221.11.1.67 ++ listmg -jnmenu = Jinan Unicom title = Jinan Unicom alerts = somelosshost = 202.102.152.3 ++ liw.g-qdmenu = Qingdao Unicom title = Qingdao Unicom alerts = somelosshost = Chengdu unicom title = Chengdu Unicom alerts = somelosshost = 119.6.6.6 ++ liw.g-ahmenu = Anhui Unicom title = Anhui Unicom alerts = somelosshost = 218.104.78.2 ++ liw.g-whmenu = Wuhan Unicom title = Wuhan unicom alerts = somelosshost = Unicom ++ liw.g-zzmenu = Zhengzhou Unicom title = Zhengzhou Unicom alerts = somelosshost = Unicom ++ liw.g-csmenu = Changsha Unicom title = Changsha Unicom alerts = somelosshost = Hangzhou ++ liw.g-njmenu = Nanjing Unicom title = Nanjing Unicom alerts = somelosshost = 221.6.4.66 ++ liw.g-hzmenu = Hangzhou Unicom title = Hangzhou Unicom alerts = somelosshost = 221.12.31.58 ++ + liw.g-xmmenu = Xiamen Unicom title = Xiamen Unicom alerts = somelosshost = Unicom ++ liyung-nnmenu = Nanning Unicom title = Nanning Unicom alerts = somelosshost = 221.7.136.68 ++ liyung-ncmenu = Nanchang Unicom title = Nanchang Unicom alerts = somelosshost = 220.248.192.10 ++ liw.g-tymenu = Taiyuan Unicom title = Taiyuan Unicom alerts = somelosshost = Beijing ++ liw.g-xnmenu = Xining Unicom title = Xining Unicom alerts = somelosshost = 221.207.12.130 ++ liw.g-gymenu = Guiyang Unicom title = Guiyang Unicom alerts = somelosshost = Beijing ++ liw.g-fzmenu = Fuzhou Unicom title = Fuzhou Unicom alerts = somelosshost = physical ++ liw.g-lzmenu = Lanzhou Unicom title = Lanzhou Unicom alerts = somelosshost = 221.7.34.1 ++ liw.g-kmmenu = Kunming Unicom title = Kunming Unicom alerts = somelosshost = Beijing ++ liw.g-xjmenu = Xinjiang Unicom title = Xinjiang Unicom alerts = somelosshost = Beijing ++ liw.g-xzmenu = Tibet Unicom title = Tibet Unicom alerts = somelosshost = 221.13.65.38 ++ liw.g -hebmenu = Harbin Unicom title = Harbin Unicom alerts = somelosshost = 202.97.224.1 ++ liw.g-hhhtmenu = Hohhot Unicom title = Hohhot Unicom alerts = somelosshost = workshop ++ yidongmenu = Mobile Network Monitoring title = Mobile Network Monitoring List host =/Other/yidong-bj/Other/yidong-sh/Other/yidong-gz/Other/yidong-sz/ other/yidong-tj/Other/yidong-sy/Other/yidong-xa/Other/yidong-jn/Other/yidong-qd/ other/yidong-cd/Other/yidong-hf/Other/yidong-wh/Other/yidong-zz/Other/yidong-cs/ other/yidong-nj/Other/yidong-nc/Other/yidong-gy/Other/yidong-fz/Other/yidong-lz/ other/yidong-km/Other/yidong-hz/Other/yidong-nn/Other/yidong-wlmq/Other/yidong-ls + ++ yidong-bjmenu = Beijing Mobile title = Beijing Mobile alerts = somelosshost = Shanghai ++ yidong-shmenu = Shanghai Mobile title = Shanghai Mobile alerts = somelosshost = 211.136.150.25 ++ yidong- gzmenu = Guangzhou mobile title = Guangzhou mobile alerts = somelosshost = Guangzhou ++ yidong-szmenu = Shenzhen mobile title = Shenzhen mobile alerts = somelosshost = 120.196.165.7 ++ yidong-tjmenu = Tianjin mobile title = Tianjin mobile alerts = somelosshost = 211.137.160.5 ++ yidong-symenu = Shenyang mobile title = Shenyang mobile alerts = somelosshost = Beijing ++ yidong-xamenu = Xi'an mobile title = Xi'an mobile alerts = somelosshost = Alipay ++ yidong-jnmenu = Jinan mobile title = Jinan mobile alerts = somelosshost = Alipay ++ yidong-qdmenu = Qingdao mobile title = Qingdao mobile alerts = somelosshost = 211.137.186.224 ++ yidong-cdmenu = Chengdu mobile title = Chengdu mobile alerts = somelosshost = 211.137.96.205 ++ yidong-hfmenu = Hefei mobile title = Hefei mobile alerts = somelosshost = Beijing ++ yidong-whmenu = Wuhan mobile title = Wuhan mobile alerts = somelosshost = 211.137.59.2 ++ yidong-zzmenu = Zhengzhou mobile title = Zhengzhou mobile alerts = somelosshost = Hangzhou ++ yidong-csmenu = changsha mobile title = Changsha mobile alerts = somelosshost = 111.8.55.1 ++ yidong-njmenu = Nanjing mobile title = Nanjing mobile alerts = somelosshost = 221.130.48.1 ++ yidong-hzmenu = Hangzhou mobile title = hangzhou mobile alerts = somelosshost = 120.199.7.10 ++ yidong-nnmenu = Nanning mobile title = Nanning mobile alerts = somelosshost = Hangzhou ++ yidong-ncmenu = Nanchang mobile title = Nanchang mobile alerts = somelosshost = workshop ++ yidong-gymenu = Guiyang mobile title = Guiyang mobile alerts = somelosshost = 211.139.5.1 ++ yidong-fzmenu = Fuzhou mobile title = Fuzhou mobile alerts = somelosshost = workshop + ++ yidong-lzmenu = Lanzhou mobile title = Lanzhou mobile alerts = somelosshost = Hangzhou ++ yidong-kmmenu = Kunming mobile title = Kunming mobile alerts = somelosshost = 211.139.29.1 ++ yidong- wlmqmenu = Urumqi mobile title = Urumqi mobile alerts = somelosshost = 218.202.152.131 ++ yidong-lsmenu = Lhasa mobile title = Lhasa mobile alerts = somelosshost = 211.139.73.35

9. Start smokeping and httpd respectively.

/Usr/local/smokeping/bin/smokepingps-ef | grepsmokehadoop2184819908011: 20pts/100: 00: 00grepsmokeroot17713110sep2? 00:00:38/usr/local/smokeping/bin/smokeping [FPing]/etc/init. d/httpdstart-ef | grephttpdhadoop2224519908011: 21pts/100: 00? 00:00:00/usr/sbin/httpdapache1771531671520sep2? 00:00:00/usr/sbin/httpdapache1771551771520sep2? 00:00:00/usr/sbin/httpdapache1771561771520sep2? 00:00:00/usr/sbin/httpdapache1771571771520sep2? 00:00:00/usr/sbin/httpdapache1771581771520sep2? 00:00:00/usr/sbin/httpdapache1771591771520sep2? 00:00:00/usr/sbin/httpdapache1771601771520sep2? 00:00:00/usr/sbin/httpdapache1771611771520sep2? 00:00:00/usr/sbin/httpdapache1773731771520sep2? 00:00:00/usr/sbin/httpdapache1774251771520sep2? 00:00:00/usr/sbin/httpdapache1794251771520sep2? 00:00:00/usr/sbin/httpd

10. Enable the smokeping interface to support Chinese Characters

Install font yum-yinstallwqy-zenhei-fonts.noarch edit smokeping configuration file vim/usr/local/smokeping/etc/config 50th line add charset = UTF-8 # Add this row edit Graphs. pm file vim/usr/local/smokeping/lib/Smokeping/Graphs. pm # insert a row '-- fontTITLE: 20: "WenQuanYiZenHeiMono"' At the bottom of row 147th "',

11. Visit the address to see if the smokeping page can appear.

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.