转载自:https://www.cnblogs.com/caoyf1992/p/8251209.html
仅作为参考
1 #!/bin/bash 2 #Date 2017/11/11 3 #mail [email protected] 4 [ $(id -u) != "0" ] && echo "Error: You must be root to run this script" && exit 1 5 export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 6 sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config 7 setenforce 0 8 which ntpdate 9 if [ $? -eq 0 ];then 10 /usr/sbin/ntpdate time1.aliyun.com 11 echo "*/5 * * * * /usr/sbin/ntpdate -s time1.aliyun.com">>/var/spool/cron/root 12 else 13 yum install ntpdate -y 14 /usr/sbin/ntpdate time1.aliyun.com 15 echo "*/5 * * * * /usr/sbin/ntpdate -s time1.aliyun.com">>/var/spool/cron/root 16 fi 17 clear 18 echo "##########################################" 19 echo "Auto Install smokeping-2.6.11 ##" 20 echo "Press Ctrl + C to cancel ##" 21 echo "Any key to continue ##" 22 echo "##########################################" 23 read -n 1 24 /etc/init.d/iptables status >/dev/null 2>&1 25 if [ $? -eq 0 ] 26 then 27 iptables -I INPUT -p tcp --dport 80 -j ACCEPT && 28 iptables-save >/dev/null 2>&1 29 else 30 echo -e "\033[32m iptables is stopd\033[0m" 31 fi 32 IP=`/sbin/ifconfig|sed -n '/inet addr/s/^[^:]*:\([0-9.]\{7,15\}\) .*/\1/1p'|sed -n '1p'` 33 sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config 34 setenforce 0 35 rpm -Uvh http://apt.sw.be/RedHat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 1>/dev/null 36 yum -y install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-CGI-SpeedCGI perl-Time-HiRes perl-ExtUtils-MakeMaker perl-RRD-Simple rrdtool rrdtool-perl curl fping echoping httpd httpd-devel gcc make wget libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl gcc libart_lgpl-devel mod_fastcgi wget wqy-* 37 if [ -d /opt ];then 38 cd /opt 39 else 40 mkdir -p /opt && cd /opt 41 fi 42 wget -c http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.11.tar.gz 43 tar -xvf smokeping-2.6.11.tar.gz 1>/dev/null 44 cd /opt/smokeping-2.6.11 45 ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty 46 ./configure -prefix=/usr/local/smokeping 47 /usr/bin/gmake install 1>/dev/null 48 cd /usr/local/smokeping 49 mkdir cache data var 1>/dev/null 50 touch /var/log/smokeping.log 51 chown -R apache:apache cache data var 52 chown -R apache:apache /var/log/smokeping.log 53 mv /usr/local/smokeping/htdocs/smokeping.fcgi.dist /usr/local/smokeping/htdocs/smokeping.fcgi 54 mv /usr/local/smokeping/etc/config.dist /usr/local/smokeping/etc/config 55 cp -f /usr/local/smokeping/etc/config /usr/local/smokeping/etc/config.back 56 sed -i "s/some.url/IP/g" /usr/local/smokeping/etc/config 57 chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist 58 if [ -d /opt ];then 59 cd /opt 60 else 61 mkdir -p /opt && cd /opt 62 fi 63 wget -c -O /opt/fping-4.0.tar.gz http://fping.org/dist/fping-4.0.tar.gz 64 tar zxvf fping-4.0.tar.gz 65 cd fping-4.0 66 ./configure --prefix=/usr/local/fping 67 make && make install 68 sed -i "s#`grep fping /usr/local/smokeping/etc/config`#binary = /usr/local/fping/sbin/fping#g" /usr/local/smokeping/etc/config 69 sed -i "148i'--font TITLE:20:"WenQuanYi\ Zen\ Hei\ Mono"'\," /usr/local/smokeping/lib/Smokeping/Graphs.pm 70 cp -rf /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.back 71 cat >> /etc/httpd/conf/httpd.conf <<'EOF' 72 Alias /cache "/usr/local/smokeping/cache/" 73 Alias /cropper "/usr/local/smokeping/htdocs/cropper/" 74 Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi" 75"/usr/local/smokeping"> 76 AllowOverride None 77 Options All 78 AddHandler cgi-script .fcgi .cgi 79 Order allow,deny 80 Allow from all 81 DirectoryIndex smokeping.fcgi 82 83 EOF 84 if [ -f /etc/init.d/smokeping ];then 85 echo "/etc/init.d/smokeping is exist" 86 else 87 touch /etc/init.d/smokeping 88 cat > /etc/init.d/smokeping <<'EOF' 89 #!/bin/bash 90 #chkconfig: 2345 80 05 91 # Description: Smokeping init.d script 92 # Create by : Mox 93 # Get function from functions library 94 . /etc/init.d/functions 95 # Start the service Smokeping 96 smokeping=/usr/local/smokeping/bin/smokeping 97 prog=smokeping 98 pidfile=${PIDFILE-/usr/local/smokeping/var/smokeping.pid} 99 lockfile=${LOCKFILE-/var/lock/subsys/smokeping} 100 RETVAL=0 101 STOP_TIMEOUT=${STOP_TIMEOUT-10} 102 LOG=/var/log/smokeping.log 103 start() { 104 echo -n $"Starting $prog: " 105 LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $smokeping $OPTIONS 106 RETVAL=$? 107 echo 108 [ $RETVAL = 0 ] && touch ${lockfile} 109 return $RETVAL 110 } 111 # Restart the service Smokeping 112 stop() { 113 echo -n $"Stopping $prog: " 114 killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping 115 RETVAL=$? 116 echo 117 [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile} 118 } 119 STOP_TIMEOUT=${STOP_TIMEOUT-10} 120 LOG=/var/log/smokeping.log 121 start() { 122 echo -n $"Starting $prog: " 123 LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $smokeping $OPTIONS 124 RETVAL=$? 125 echo 126 [ $RETVAL = 0 ] && touch ${lockfile} 127 return $RETVAL 128 } 129 # Restart the service Smokeping 130 stop() { 131 echo -n $"Stopping $prog: " 132 killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping 133 RETVAL=$? 134 echo 135 [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile} 136 } 137 case "$1" in 138 start) 139 start 140 ;; 141 stop) 142 stop 143 ;; 144 status) 145 status -p ${pidfile} $httpd 146 RETVAL=$? 147 ;; 148 restart) 149 stop 150 start 151 ;; 152 *) 153 echo $"Usage: $prog {start|stop|restart|status}" 154 RETVAL=2 155 esac 156 EOF 157 fi 158 cat > /usr/local/smokeping/etc/config <<'EOF' 159 *** General *** 160 owner = caoyf 161 contact = caoyf1992@163.com 162 #mailhost = smtp.163.com:25 163 #mailusr = xuel@linuxidc 164 #mailpwd = [email protected] 165 #sendmail = /usr/sbin/sendmail 166 # NOTE: do not put the Image Cache below cgi-bin 167 # since all files under cgi-bin will be executed ... this is not 168 # good for images. 169 imgcache = /usr/local/smokeping/cache 170 imgurl = cache 171 datadir = /usr/local/smokeping/data 172 piddir = /usr/local/smokeping/var 173 cgiurl = http://$IP/smokeping.cgi 174 smokemail = /usr/local/smokeping/etc/smokemail.dist 175 tmail = /usr/local/smokeping/etc/tmail.dist 176 # specify this to get syslog logging 177 syslogfacility = local0 178 # each probe is now run in its own process 179 # disable this to revert to the old behaviour 180 # concurrentprobes = no 181 *** Alerts *** 182 to = 8578545954@qq.com 183 from = [email protected] 184 +someloss 185 type = loss 186 # in percent 187 pattern = >0%,*12*,>0%,*12*,>0% 188 comment = loss 3 times in a row 189 +rttdetect 190 type = rtt 191 #in milli seconds 192 pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100 193 edgetrigger = yes 194 comment = routing messed up again ? 195 196 +lossdetect 197 type = loss 198 # in percent 199 pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20% 200 edgetrigger = yes 201 comment = suddenly there is packet loss 202 +miniloss 203 type = loss 204 # in percent 205 pattern = >0%,*12*,>0%,*12*,>0% 206 edgetrigger = yes 207 #pattern = >0%,*12* 208 comment = detected loss 1 times over the last two hours 209 #+rttdetect 210 #type = rtt 211 # in milliseconds 212 #pattern = <1,<1,<1,<1,<1,<2,>2,>2,>2 213 #comment = routing messed up again ? 214 +rttbad 215 type = rtt 216 # in milliseconds 217 edgetrigger = yes 218 pattern = ==S,>20 219 comment = route 220 +rttbadstart 221 type = rtt 222 # in milliseconds 223 edgetrigger = yes 224 pattern = ==S,==U 225 comment = offline at startup 226 *** Database *** 227 step = 60 228 pings = 20 229 230 # consfn mrhb steps total 231 AVERAGE 0.5 1 1008 232 AVERAGE 0.5 12 4320 233 MIN 0.5 12 4320 234 MAX 0.5 12 4320 235 AVERAGE 0.5 144 720 236 MAX 0.5 144 720 237 MIN 0.5 144 720 238 *** Presentation *** 239 charset = utf-8 240 template = /usr/local/smokeping/etc/basepage.html.dist 241 + charts 242 menu = 排行榜 243 title = 排行榜 244 ++ stddev 245 sorter = StdDev(entries=>4) 246 title = 综合指数排行 247 menu = 综合指数排行 248 format = 综合指数 %f 249 ++ max 250 sorter = Max(entries=>5) 251 title = 最大延迟排行 252 menu = 最大延迟排行 253 format = 最大延迟时间 %f 秒 254 ++ loss 255 sorter = Loss(entries=>5) 256 title = 丢包率排行 257 menu = 丢包率排行 258 format = 丢包 %f 259 ++ median 260 sorter = Median(entries=>5) 261 title = 平均延迟排行 262 menu = 平均延迟排行 263 format = 平均延迟 %f 秒 264 + overview 265 width = 860 266 height = 150 267 range = 10h 268 + detail 269 width = 860 270 height = 200 271 unison_tolerance = 2 272 "Last 3 Hours" 3h 273 "Last 30 Hours" 30h 274 "Last 10 Days" 10d 275 "Last 30 Days" 30d 276 "Last 90 Days" 90d 277 #+ hierarchies 278 #++ owner 279 #title = Host Owner 280 #++ location 281 #title = Location 282 283 *** Probes *** 284 + FPing 285 binary = /usr/local/fping/sbin/fping 286 *** Slaves *** 287 secrets=/usr/local/smokeping/etc/smokeping_secrets.dist 288 +boomer 289 display_name=boomer 290 color=0000ff 291 +slave2 292 display_name=another 293 color=00ff00 294 *** Targets *** 295 probe = FPing 296 menu = Top 297 #title = Network Latency Grapher 298 title = 欢迎访问XXXIDC网络节点质量监控 299 #remark = Welcome to the SmokePing website of xxx Company. \ 300 # Here you will learn all about the latency of our network. 301 remark = XXXXX网络质量监控系统 302 #+ Mobile 303 + YD_huabei 304 menu = China Mobile huabei 305 title = 移动 华北地区 306 ++ YD_beiing 307 menu = 移动北京 308 title = YD_beijing 218.200.240.1 309 host = 218.200.240.1 310 ++ YD_tianjin 311 menu = 移动天津 312 title = YD_tianjin 211.137.160.1 313 host = 211.137.160.1 314 ++ YD_shijiazhuang 315 menu = 移动石家庄 316 title = YD_shijiazhuang 218.207.64.1 317 host = 218.207.64.1 318 ++ YD_taiyuan 319 menu = 移动太原 320 title = YD_taiyuan 211.142.0.1 321 host = 211.142.0.1 322 ++ YD_huabeibb 323 menu = 移动华北骨干 324 title = YD_huabeibb 211.136.67.101 325 host = 211.136.67.101 326 + YD_dongbei 327 menu = China Mobile dongbei 328 title = 移动东北地区 329 ++ YD_shenyang 330 menu = 移动沈阳 331 title = YD_shenyang 221.180.131.1 332 host = 221.180.131.1 333 334 ++ YD_changchun 335 menu = 移动长春 336 title = YD_changchun 211.141.71.1 337 host = 211.141.71.1 338 + YD_huadong 339 menu = China Mobile huadong 340 title = 移动华东地区 341 ++ YD_huadongbb 342 menu = 移动华东骨干 343 title = YD_huadongbb 211.141.71.1 344 host = 211.141.71.1 345 ++ YD_shanghai 346 menu = 移动上海 347 title = YD_shanghai 117.131.0.1 348 host = 117.131.0.1 349 ++ YD_wuxi 350 menu = 移动无锡 351 title = YD_wuxi 120.195.152.1 352 host = 120.195.152.1 353 ++ YD_yantai 354 menu = 移动烟台 355 title = YD_yantai 211.137.206.113 356 host = 211.137.206.113 357 358 ++ YD_hangzhou 359 menu = 移动杭州 360 title = YD_hangzhou 211.140.0.8 361 host = 211.140.0.8 362 + YD_zhongnan 363 menu = China Mobile zhongnan 364 title = 移动中南地区 365 ++ YD_wuhan 366 menu = 移动武汉 367 title = YD_wuhan 120.202.0.1 368 host = 120.202.0.1 369 ++ YD_guangzhou 370 menu = 移动广州 371 title = YD_guangzhou 211.139.145.239 372 host = 211.139.145.239 373 ++ YD_changsha 374 menu = 移动长沙 375 title = YD_changsha 211.143.5.1 376 host = 211.143.5.1 377 + YD_xibei 378 menu = China Mobile xibei 379 title = 移动西北地区 380 ++ YD_xining 381 menu = 移动西宁 382 title = YD_xining 111.12.255.29 383 host = 111.12.255.29 384 385 ++ YD_yinchuan 386 menu = 移动银川 387 title = YD_yinchuan 111.49.10.1 388 host = 111.49.10.1 389 ++ YD_xian 390 menu = 移动西安 391 title = YD_xian 218.200.63.185 392 host = 218.200.63.185 393 + YD_HuiZong 394 menu = China Mobile HuiZong 395 title = 移动汇总 396 ++ YD_HuiZong 397 menu = 移动汇总 398 title = YD_HuiZong 399 host = /YD_huabei/YD_beiing /YD_huabei/YD_tianjin /YD_huabei/YD_shijiazhuang /YD_huabei/YD_taiyuan /YD_huabei/YD_huabeibb /YD_dongbei/YD_shenyang /YD_dongbei/YD_changchun /YD_huadong/YD_huadongbb /YD_huadong/YD_shanghai /YD_huadong/YD_wuxi /YD_huadong/YD_yantai /YD_huadong/YD_hangzhou /YD_zhongnan/YD_wuhan /YD_zhongnan/YD_guangzhou /YD_zhongnan/YD_changsha /YD_xibei/YD_xining /YD_xibei/YD_yinchuan /YD_xibei/YD_xian 400 #+ Unicom 401 + UN_xibei 402 menu = China Unicom xibei 403 title = 联通西北地区 404 405 ++ UN_lanzhou 406 menu = 联通兰州 407 title = UN_lanzhou 115.85.195.1 408 host = 115.85.195.1 409 ++ UN_xian 410 menu = 联通西安 411 title = UN_xian 124.89.76.1 412 host = 124.89.76.1 413 ++ UN_jiuquan 414 menu = 联通酒泉 415 title = UN_jiuquan 221.7.43.1 416 host = 221.7.43.1 417 + UN_xinan 418 menu = China Unicom xinan 419 title = 联通西南地区 420 ++ UN_xinanbb 421 menu = 联通西南骨干 422 title = UN_xinanbb 219.158.14.66 423 host = 219.158.14.66 424 ++ UN_chongqing 425 menu = 联通重庆 426 title = UN_chongqing 221.5.203.86 427 host = 221.5.203.86 428 429 ++ UN_guiyang 430 menu = 联通贵阳 431 title = UN_guiyang 58.16.254.82 432 host = 58.16.254.82 433 ++ UN_puer 434 menu = 联通普洱 435 title = UN_puer 221.3.161.1 436 host = 221.3.161.1 437 + UN_zhongnan 438 menu = China Unicom zhongnan 439 title = 联通中南地区 440 ++ UN_zhongnanbb 441 menu = 联通中南骨干 442 title = UN_zhongnanbb 219.158.112.46 443 host = 219.158.112.46 444 ++ UN_kaifeng 445 menu = 联通开封 446 title = UN_kaifeng 61.53.134.1 447 host = 61.53.134.1 448 ++ UN_changsha 449 menu = 联通长沙 450 title = UN_changsha 58.20.127.238 451 host = 58.20.127.238 452 453 ++ UN_nanning 454 menu = 联通南宁 455 title = UN_nanning 221.7.128.68 456 host = 221.7.128.68 457 ++ UN_guangzhou 458 menu = 联通广州 459 title = UN_guangzhou 221.4.66.66 460 host = 221.4.66.66 461 ++ UN_wuhan 462 menu = 联通武汉 463 title = UN_wuhan 218.104.111.122 464 host = 218.104.111.122 465 ++ UN_zhengzhou 466 menu = 联通郑州 467 title = UN_zhengzhou 125.46.62.1 468 host = 125.46.62.1 469 + UN_huadong 470 menu = China Unicom huadong 471 title = 联通华东地区 472 ++ UN_shanghai 473 menu = 联通上海 474 title = UN_shanghai 58.246.48.1 475 host = 58.246.48.1 476 477 ++ UN_hangzhou 478 menu = 联通杭州 479 title = UN_hangzhou 60.12.141.49 480 host = 60.12.141.49 481 ++ UN_putian 482 menu = 联通莆田 483 title = UN_putian 58.22.128.2 484 host = 58.22.128.2 485 ++ UN_nanchang 486 menu = 联通南昌 487 title = UN_nanchang 58.17.30.1 488 host = 58.17.30.1 489 ++ UN_xiamen 490 menu = 联通厦门 491 title = UN_xiamen 36.250.77.34 492 host = 36.250.77.34 493 ++ UN_qingdao 494 menu = 联通青岛 495 title = UN_qingdao 202.102.128.68 496 host = 202.102.128.68 497 + UN_dongbei 498 menu = China Unicom dongbei 499 title = 联通东北地区 500 501 ++ UN_dongbeibb 502 menu = 联通东北骨干 503 title = UN_dongbeibb 219.158.105.234 504 host = 219.158.105.234 505 ++ UN_shenyang 506 menu = 联通沈阳 507 title = UN_shenyang 124.95.173.47 508 host = 124.95.173.47 509 ++ UN_jilin 510 menu = 联通吉林 511 title = UN_jilin 139.214.195.240 512 host = 139.214.195.240 513 ++ UN_haerbin 514 menu = 联通哈尔滨 515 title = UN_haerbin 202.97.207.240 516 host = 202.97.207.240 517 ++ UN_fushun 518 menu = 联通抚顺 519 title = UN_fushun 60.18.95.1 520 host = 60.18.95.1 521 + UN_huabei 522 menu = China Unicom huabei 523 title = 联通华北地区 524 525 ++ UN_huabeibb 526 menu = 联通华北骨干 527 title = UN_huabeibb 219.158.104.134 528 host = 219.158.104.134 529 ++ UN_alashan 530 menu = 联通阿拉善 531 title = UN_alashan 1.24.64.1 532 host = 1.24.64.1 533 ++ UN_shijiazhuang 534 menu = 联通石家庄 535 title = UN_shijiazhuang 110.228.158.1 536 host = 110.228.158.1 537 ++ UN_tianjin 538 menu = 联通天津 539 title = UN_tianjin 113.31.41.119 540 host = 113.31.41.119 541 ++ UN_beijing 542 menu = 联通北京 543 title = UN_beijing 125.34.224.1 544 host = 125.34.224.1 545 ++ UN_datong 546 menu = 联通大同 547 title = UN_datong 118.72.100.1 548 host = 118.72.100.1 549 ++ UN_tangshan 550 menu = 联通唐山 551 title = UN_tangshan 60.2.61.88 552 host = 60.2.61.88 553 ++ UN_changzhi 554 menu = 联通长治 555 title = UN_changzhi 60.220.216.97 556 host = 60.220.216.97 557 + UN_HuiZong 558 menu = China Unicom HuiZong 559 title = 联通汇总 560 ++ UN_HuiZong 561 menu = 联通汇总 562 title = UN_HuiZong 563 host = /UN_xibei/UN_lanzhou /UN_xibei/UN_xian /UN_xibei/UN_jiuquan /UN_xinan/UN_xinanbb /UN_xinan/UN_chongqing /UN_xinan/UN_guiyang /UN_xinan/UN_puer /UN_zhongnan/UN_zhongnanbb /UN_zhongnan/UN_kaifeng /UN_zhongnan/UN_changsha /UN_zhongnan/UN_nanning /UN_zhongnan/UN_guangzhou /UN_zhongnan/UN_wuhan /UN_zhongnan/UN_zhengzhou /UN_huadong/UN_shanghai /UN_huadong/UN_hangzhou /UN_huadong/UN_putian /UN_huadong/UN_nanchang /UN_huadong/UN_xiamen /UN_huadong/UN_qingdao /UN_dongbei/UN_dongbeibb /UN_dongbei/UN_shenyang /UN_dongbei/UN_jilin /UN_dongbei/UN_haerbin /UN_dongbei/UN_fushun /UN_huabei/UN_huabeibb /UN_huabei/UN_alashan /UN_huabei/UN_shijiazhuang /UN_huabei/UN_tianjin /UN_huabei/UN_beijing /UN_huabei/UN_datong /UN_huabei/UN_tangshan /UN_huabei/UN_changzhi 564 #+ Telecom 565 + DX_huabei 566 menu = China Telecom huabei 567 title = 电信华北地区 568 ++ DX_beijingbb 569 menu = 电信北京骨干 570 title = DX_beijingbb 180.149.128.1 571 host = 180.149.128.1 572 ++ DX_beijing 573 menu = 电信北京 574 title = DX_beijing 106.120.186.61 575 host = 106.120.186.61 576 ++ DX_baotou 577 menu = 电信包头 578 title = DX_baotou 1.180.80.5 579 host = 1.180.80.5 580 ++ DX_changzhi 581 menu = 电信长治 582 title = DX_changzhi 1.70.0.1 583 host = 1.70.0.1 584 ++ DX_tianjin 585 menu = 电信天津 586 title = DX_tianjin 202.97.79.202 587 host = 202.97.79.202 588 ++ DX_chifeng 589 menu = 电信赤峰 590 title = DX_chifeng 123.178.241.2 591 host = 123.178.241.2 592 ++ DX_zhangjiakou 593 menu = 电信张家口 594 title = DX_zhangjiakou 219.148.106.1 595 host = 219.148.106.1 596 ++ DX_hebeibb 597 menu = 电信河北骨干 598 title = DX_hebeibb 218.30.102.126 599 host = 218.30.102.126 600 ++ DX_chengde 601 menu = 电信承德 602 title = DX_chengde 27.129.62.66 603 host = 27.129.62.66 604 + DX_dongbei 605 menu = China Telecom dongbei 606 title = 电信东北地区 607 ++ DX_baicheng 608 menu = 电信白城 609 title = DX_baicheng 123.172.195.1 610 host = 123.172.195.1 611 ++ DX_shenyang 612 menu = 电信沈阳 613 title = DX_shenyang 219.148.224.170 614 host = 219.148.224.170 615 ++ DX_haerbin 616 menu = 电信哈尔滨 617 title = DX_haerbin 112.100.4.130 618 host = 112.100.4.130 619 + DX_huadong 620 menu = China Telecom huadong 621 title = 电信华东地区 622 ++ DX_hefei 623 menu = 电信合肥 624 title = DX_hefei 115.238.250.95 625 host = 115.238.250.95 626 ++ DX_hangzhou 627 menu = 电信杭州 628 title = DX_hangzhou 183.136.237.178 629 host = 183.136.237.178 630 ++ DX_nanchang 631 menu = 电信南昌 632 title = DX_nanchang 220.175.137.1 633 host = 220.175.137.1 634 ++ DX_yantai 635 menu = 电信烟台 636 title = DX_yantai 222.173.223.97 637 host = 222.173.223.97 638 ++ DX_zhangzhou 639 menu = 电信漳州 640 title = DX_zhangzhou 27.157.0.1 641 host = 27.157.0.1 642 ++ DX_shanghai 643 menu = 电信上海 644 title = DX_shanghai 114.80.243.1 645 host = 114.80.243.1 646 + DX_zhongnan 647 menu = China Telecom zhongnan 648 title = 电信中南地区 649 ++ DX_zhengzhou 650 menu = 电信郑州 651 title = DX_zhengzhou 1.192.0.1 652 host = 1.192.0.1 653 ++ DX_maoming 654 menu = 电信茂名 655 title = DX_maoming 121.10.173.117 656 host = 121.10.173.117 657 658 ++ DX_changsha 659 menu = 电信长沙 660 title = DX_changsha 124.232.137.133 661 host = 124.232.137.133 662 ++ DX_dongguan 663 menu = 电信东莞 664 title = DX_dongguan 125.93.74.17 665 host = 125.93.74.17 666 ++ DX_nanning 667 menu = 电信南宁 668 title = DX_nanning 171.107.80.102 669 host = 171.107.80.102 670 ++ DX_haikou 671 menu = 电信海口 672 title = DX_haikou 220.174.236.1 673 host = 220.174.236.1 674 + DX_xinan 675 menu = China Telecom xinan 676 title = 电信西南地区 677 ++ DX_kunming 678 menu = 电信昆明 679 title = DX_kunming 116.53.255.34 680 host = 116.53.255.34 681 ++ DX_chongqing 682 menu = 电信重庆 683 title = DX_chongqing 119.84.87.231 684 host = 119.84.87.231 685 ++ DX_chengdu 686 menu = 电信成都 687 title = DX_chengdu 125.64.99.162 688 host = 125.64.99.162 689 ++ DX_zhidi 690 menu = 电信芝地 691 title = DX_zhidi 202.98.246.129 692 host = 202.98.246.129 693 ++ DX_yuxi 694 menu = 电信玉溪 695 title = DX_yuxi 222.220.206.1 696 host = 222.220.206.1 697 + DX_xibei 698 menu = China Telecom xibei 699 title = 电信西北地区 700 ++ DX_lanzhou 701 menu = 电信兰州 702 title = DX_lanzhou 118.180.5.222 703 host = 118.180.5.222 704 ++ DX_yinchuan 705 menu = 电信银川 706 title = DX_yinchuan 124.224.255.46 707 host = 124.224.255.46 708 ++ DX_kuerle 709 menu = 电信库尔勒 710 title = DX_kuerle 222.83.32.6 711 host = 222.83.32.6 712 ++ DX_wulumuqi 713 menu = 电信乌鲁木齐 714 title = DX_wulumuqi 61.128.111.1 715 host = 61.128.111.1 716 ++ DX_yanan 717 menu = 电信延安 718 title = DX_yanan 36.43.0.1 719 host = 36.43.0.1 720 + DX_HuiZong 721 menu = China Telecom HuiZong 722 title = 电信汇总 723 724 ++ DX_HuiZong 725 menu = 电信汇总 726 title = DX_HuiZong 727 host = /DX_huabei/DX_beijingbb /DX_huabei/DX_beijing /DX_huabei/DX_baotou /DX_huabei/DX_changzhi /DX_huabei/DX_tianjin /DX_huabei/DX_chifeng /DX_huabei/DX_zhangjiakou /DX_huabei/DX_hebeibb /DX_huabei/DX_chengde /DX_dongbei/DX_baicheng /DX_dongbei/DX_shenyang /DX_dongbei/DX_haerbin /DX_huadong/DX_hefei /DX_huadong/DX_hangzhou /DX_huadong/DX_nanchang /DX_huadong/DX_yantai /DX_huadong/DX_zhangzhou /DX_huadong/DX_shanghai /DX_zhongnan/DX_zhengzhou /DX_zhongnan/DX_maoming /DX_zhongnan/DX_changsha /DX_zhongnan/DX_dongguan /DX_zhongnan/DX_nanning /DX_zhongnan/DX_haikou /DX_xinan/DX_kunming /DX_xinan/DX_chongqing /DX_xinan/DX_chengdu /DX_xinan/DX_zhidi /DX_xinan/DX_yuxi /DX_xibei/DX_lanzhou /DX_xibei/DX_yinchuan /DX_xibei/DX_kuerle /DX_xibei/DX_wulumuqi /DX_xibei/DX_yanan 728 EOF 729 chmod +x /etc/init.d/smokeping 730 chkconfig smokeping on 731 chkconfig httpd on 732 /etc/init.d/httpd start 733 /etc/init.d/smokeping start 734 if [ $? -eq 0 ];then 735 echo -e "\\033[32m smokeping setup successfull URR:http://$IP/smokeping\\033[0m" 736 fi