#!/bin/bash

#!/bin/bash

一、目的

1.1安装smokeping

[root@linux-node2 ~]# cat /etc/redhat-release             
#查看服务器音讯

CentOS release 6.7 (Final)

[root@linux-node2 ~]# uname -r

2.6.32-573.el6.x86_64

 

[root@linux-node2 ~]# 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 libart_lgpl-devel mod_fastcgi
screen #因此yum安装所依靠的库以及环境

[root@linux-node2 ~]# cd /usr/local/src/              
#进去默许源码包存放路径

[root@linux-node2 ~]# wget
 #下载smokeping包

[root@linux-node2 src]# tar xf smokeping-2.6.9.tar.gz         
#解压smokeping

[root@linux-node2 src]# cd smokeping-2.6.9        #进入smokeping目录

[root@linux-node2 smokeping-2.6.9]# ./setup/build-perl-modules.sh
/usr/local/smokeping/thirdparty            #

[root@linux-node2 smokeping-2.6.9]#
./configure –prefix=/usr/local/smokeping      
#编译smokeping到/usr/local

[root@linux-node2 smokeping-2.6.9]# cd /usr/local/smokeping/        
#进入smokeping目录

[root@linux-node2 smokeping]# mkdir cache data var        
#开创七个目录

[root@linux-node2 smokeping]# touch /var/log/smokeping.log          
#成立smokeping日志文件

[root@linux-node2 smokeping]# chown apache.apache cache/ data/ var/
/var/log/smokeping.log          #授权属主属组为apache

[root@linux-node2 smokeping]# cd /usr/local/smokeping/htdocs/    
#进入smokeping下htdocs目录

[root@linux-node2 htdocs]# mv smokeping.fcgi.dist smokeping.fcgi  
#修改smokeping文件名

[root@linux-node2 smokeping]# mv /usr/local/smokeping/etc/config.dist
/usr/local/smokeping/etc/config   #修改smokeping下etc目录smokeping

#Date 2017/11/11

#Date 2017/11/11

一.壹 监控指标

一.2修改smokeping配置文件

[root@linux-node2 smokeping]# sed -i ‘s#cgiurl  
=    =
‘ /usr/local/smokeping/etc/config

[root@linux-node2 smokeping]# sed -i ‘s#300#60#g’
/usr/local/smokeping/etc/config        #暗许检查评定时间300秒修改60秒

[root@linux-node2 smokeping]# sed -i ‘s#20#60#g’
/usr/local/smokeping/etc/config
#默认ping20次,修改为60秒ping60次

[root@linux-node2 ~]#
vim /usr/local/smokeping/etc/config              
#在presentation添加utf-八国语字符集

*** Presentation ***

charset = utf-8

[root@linux-node2 smokeping]# chmod
600 /usr/local/smokeping/etc/smokeping_secrets.dist       
#修改密码权限为root只读

#mail caoyf1992@163.com

#mail caoyf1992@163.com

为便于监测各数据主导网络情状,自定义全国各节点,从而发现互联网特别,判断互连网故障。

一.③修改apache配置文件 

[root@linux-node2 htdocs]# htpasswd
-c /usr/local/smokeping/htdocs/htpasswd darker      #安装签到密码验证 
通过apache自带验证功用

New password:

Re-type new password:

Adding password for user darker

DocumentRoot “/var/www/html”               
#在那行上边添加如下—标红的表示密码验证

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 None

Options All

AddHandler cgi-script .fcgi .cgi

Order allow,deny

Allow from all

AuthName “Smokeping”

AuthType Basic

AuthUserFile /usr/local/smokeping/htdocs/htpasswd

Require valid-user

DirectoryIndex
smokeping.fcgi
</Directory>

[ $(id -u) != “0” ] && echo “Error: You must be root to run this
script” && exit 1

[ $(id -u) != “0” ] && echo “Error: You must be root to run this
script” && exit 1

1.二 本文指标

一.4装置smokeping运营脚本

[root@linux-node2 ~]# cat /etc/init.d/smokeping                
#smokeping运维脚本

#!/bin/bash

#

# chkconfig: 2345 80 05

# Description: Smokeping init.d script

# Write by : linux-Leon_xiedi

# Get function from functions library

. /etc/init.d/functions

# Start the service Smokeping

function start() {

echo -n “Starting Smokeping: “

/usr/local/smokeping/bin/smokeping >/dev/null 2>&1

### Create the lock file ###

                touch /var/lock/subsys/smokeping

success $”Smokeping startup”

echo

}

# Restart the service Smokeping

function stop() {

echo -n “Stopping Smokeping: “

kill -9 `ps ax |grep “/usr/local/smokeping/bin/smokeping” |
grep -v grep | awk ‘{ print $1 }’` >/dev/null 2>&1

### Now, delete the lock file ###

rm -f /var/lock/subsys/smokeping

success $”Smokeping shutdown”

echo

}

#Show status about Smokeping

function status() {

NUM=”`ps -ef|grep smokeping|grep -v grep|wc -l`”

if [ “$NUM” == “0” ];then

echo “Smokeping is not run”

else

echo “Smokeping is running”

fi

 

}

### main logic ###

case “$1” in

start)

start

        ;;

stop)

        stop

        ;;

status)

status

        ;;

restart|reload)

        stop

start

;;

*)

echo $”Usage: $0
{start|stop|restart|reload|status}”

exit 1

esac

exit 0

 

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

敏捷计划Smokeping系统,为末期相关工程师布署此系统提供借鉴与参考。

1.5伊始服务以及走访smokeping

[root@linux-node2 ~]# chmod 755 /etc/init.d/smokeping  
#添加脚本75五权力

[root@linux-node2 ~]# chkconfig –add smokeping      
#将smokeping参加开机运营

[root@linux-node2 ~]# chkconfig smokeping on  
#设置smokeping为开机运转

[root@linux-node2 ~]# chkconfig httpd on    #设置apache为开机运营

[root@linux-node2 ~]# /etc/init.d/httpd restart    #重启apache服务

[root@linux-node2 ~]# /etc/init.d/smokeping restart  
#重启smokeping服务

一.经过浏览器访问smokeping,如图1-一

 

图1-1

sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config

sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config

2、理论功底

1.陆添加需求监察和控制的网址和节点

注意事项:

1)在/usr/local/smokeping/etc/config中添加

二)smokeping就那点不佳,添加节点不可能在前台Web页面添加,一定要在后台的布局文件中增进。

3)修改/usr/local/smokeping/etc/config 后,必须重启smokeping
程序,配置才会卓有成效  

肆)smokeping 会根据配置文件config
在/usr/local/smokeping/data
之下添加moniter文件夹,其下富含website子文件夹

5)用vmware
workstation的虚拟机测试有一点便宜,workstation下的杜撰网卡能够设置出入的丢包率,适合smokeping做丢包测试,
经过测试smokeping检验出的丢包率与vmware
worksation虚拟网卡设置的丢包率基本相同,也正是说smokeping
能够感应网络的实际景况。

     添加监察和控制节点示例:注意+是率先层,++是第2层,+++ 是第1层

 

+ Other

menu = 3大互联网监察和控制

title = 监察和控制总括

++ dianxin

menu = 邮电通讯互连网监控

title = 邮电通讯网络监督列表

host = /Other/dianxin/dianxin-bj
/Other/dianxin/dianxin-hlj /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-hlj

menu = 多瑙河邮电通讯

title = 莱茵河邮电通讯

alerts = someloss

host = 219.147.198.242

 

+++ 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 = 联通网络监督

title = 联通互联网监察和控制列表

host = /Other/liantong/liantong-bj /Other/liantong/liantong-hlj
/Other/liantong/liantong-tj
/Other/liantong/liantong-sc
/Other/liantong/liantong-sh /Other/liantong/liantong-gz

 

+++ liantong-bj

menu = 北京联通

title = 法国巴黎联通

alerts = someloss

host = 61.135.169.121

 

+++ liantong-hlj

menu = 多瑙河联通

title = 长江联通

alerts = someloss

host = 202.97.224.69

 

+++ liantong-tj

menu = 圣多明各联通

title = 圣Jose联通

alerts = someloss

host = 202.99.96.68

 

+++ liantong-sc

menu = 密西西比河联通

title = 福建联通

alerts = someloss

host = 119.6.6.6

 

+++ liantong-sh

menu = 新加坡联通

title = 法国首都联通

alerts = someloss

host = 210.22.84.3

 

+++ liantong-gz

menu = 云南联通

title = 江西联通

alerts = someloss

host = 221.5.88.88

 

++ yidong

menu = 移动互联网监察和控制

title = 移动网络监察和控制列表

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

 

+++ yidong-bj

menu = 巴黎运动

title = 新加坡移动

alerts = someloss

host = 221.130.33.52

 

+++ yidong-hlj

menu = 长江运动

title = 多瑙河移动

alerts = someloss

host = 211.137.241.35

 

+++ yidong-tj

menu = 克赖斯特彻奇活动

title = 圣Louis移动

alerts = someloss

host = 211.137.160.5

 

+++ yidong-sc

menu = 海南活动

title = 山东运动

alerts = someloss

host = 218.201.4.3

 

+++ yidong-sh

menu = 法国巴黎活动

title = 香港运动

alerts = someloss

host = 117.131.19.23

 

+++ yidong-gz

menu = 江苏移动

title = 云南运动

alerts = someloss

host = 211.136.192.6

 

 

setenforce 0

setenforce 0

二.壹 相关答辩

which  ntpdate

which  ntpdate

Smokeping:rrdtool的小编TobiOetiker
的文章,是用Perl语言编写成功,组件:BMWX5BMWX5Dtool、Fping、Echoping、Curl、Dig、SSh、Perl
模块,Perl、SpeedyCGI、ApacheO锐界NGINX。

if [ $? -eq 0 ];then

if [ $? -eq 0 ];then

三、脚本

    /usr/sbin/ntpdate time1.aliyun.com

    /usr/sbin/ntpdate time1.aliyun.com

#!/bin/bash
#Date 2016/11/11
#mail xuel@linuxidc.com
[ $(id -u) != “0” ] && echo “Error: You must be root to run this
script” && exit 1
export
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config
setenforce 0
which  ntpdate
if [ $? -eq 0 ];then
    /usr/sbin/ntpdate time1.aliyun.com
    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 
else
    yum install ntpdate -y
    /usr/sbin/ntpdate time1.aliyun.com
    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 
fi
clear
echo
“##########################################”
echo “Auto Install smokeping-2.6.11          ##”
echo “Press Ctrl + C to cancel                ##”
echo “Any key to continue                    ##”
echo
“##########################################”
read -n 1
/etc/init.d/iptables status >/dev/null 2>&1
if [ $? -eq 0 ]
then
iptables -I INPUT -p tcp –dport 80 -j ACCEPT &&
iptables-save >/dev/null 2>&1
else
    echo -e “\033[32m iptables is stopd\033[0m”
fi
IP=`/sbin/ifconfig|sed -n ‘/inet
addr/s/^[^:]*:\([0-9.]\{7,15\}\) .*/\1/1p’|sed -n ‘1p’`
sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config
setenforce 0
rpm -Uvh

1>/dev/null
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-*
if [ -d /opt ];then
    cd /opt
else
    mkdir -p /opt && cd /opt
fi
wget -c
tar -xvf smokeping-2.6.11.tar.gz 1>/dev/null
cd /opt/smokeping-2.6.11
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
./configure -prefix=/usr/local/smokeping
/usr/bin/gmake install  1>/dev/null
cd /usr/local/smokeping
mkdir cache data var 1>/dev/null
touch /var/log/smokeping.log
chown -R apache:apache cache data var
chown -R apache:apache /var/log/smokeping.log
mv /usr/local/smokeping/htdocs/smokeping.fcgi.dist 
/usr/local/smokeping/htdocs/smokeping.fcgi
mv /usr/local/smokeping/etc/config.dist 
/usr/local/smokeping/etc/config
cp -f /usr/local/smokeping/etc/config
/usr/local/smokeping/etc/config.back
sed -i “s/some.url/IP/g” /usr/local/smokeping/etc/config
chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist
 
if [ -d /opt ];then
    cd /opt
else
    mkdir -p /opt && cd /opt
fi
wget -c -O /opt/fping-3.13.tar.gz

tar zxvf fping-3.13.tar.gz
cd fping-3.13
./configure –prefix=/usr/local/fping
make && make install
sed -i “s#`grep fping /usr/local/smokeping/etc/config`#binary =
/usr/local/fping/sbin/fping#g” /usr/local/smokeping/etc/config
sed -i “148i’–font TITLE:20:”WenQuanYi\ Zen\ Hei\ Mono”‘\,”
/usr/local/smokeping/lib/Smokeping/Graphs.pm
cp -rf /etc/httpd/conf/httpd.conf  /etc/httpd/conf/httpd.conf.back
cat >> /etc/httpd/conf/httpd.conf <<‘EOF’
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 None
Options All
AddHandler cgi-script .fcgi .cgi
Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
</Directory>
EOF
 
if [ -f /etc/init.d/smokeping ];then
    echo “/etc/init.d/smokeping is exist”
else
    touch /etc/init.d/smokeping
    cat > /etc/init.d/smokeping <<‘EOF’
    #!/bin/bash
    #chkconfig: 2345 80 05
    # Description: Smokeping init.d script
    # Create by : Mox
    # Get function from functions library
    . /etc/init.d/functions
    # Start the service Smokeping
    smokeping=/usr/local/smokeping/bin/smokeping
    prog=smokeping
    pidfile=${PIDFILE-/usr/local/smokeping/var/smokeping.pid}
    lockfile=${LOCKFILE-/var/lock/subsys/smokeping}
    RETVAL=0
    STOP_TIMEOUT=${STOP_TIMEOUT-10}
    LOG=/var/log/smokeping.log
 
    start() {
        echo -n $”Starting $prog: “
        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
    }
 
 
    # Restart the service Smokeping
    stop() {
        echo -n $”Stopping $prog: “
        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
    }
 
    STOP_TIMEOUT=${STOP_TIMEOUT-10}
    LOG=/var/log/smokeping.log
 
    start() {
        echo -n $”Starting $prog: “
        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
    }
 
 
    # Restart the service Smokeping
    stop() {
        echo -n $”Stopping $prog: “
        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
    }
 
    case “$1” in
    start)
        start
    ;;
    stop)
        stop
    ;;
    status)
        status -p ${pidfile} $httpd
        RETVAL=$?
    ;;
    restart)
        stop
        start
        ;;
    *)
        echo $”Usage: $prog {start|stop|restart|status}”
        RETVAL=2
 
    esac
 
EOF
fi
 
cat > /usr/local/smokeping/etc/config <<‘EOF’
*** General ***
 
owner    = Peter Random
contact  = service02@linuxidc.com
#mailhost = smtp.linuxidc.com:25
#mailusr  = xuel@linuxidc
#mailpwd  = anchnet@123.com
#sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed … this is not
# good for images.
imgcache = /usr/local/smokeping/cache
imgurl  = cache
datadir  = /usr/local/smokeping/data
piddir  = /usr/local/smokeping/var
cgiurl  =
smokemail = /usr/local/smokeping/etc/smokemail.dist
tmail = /usr/local/smokeping/etc/tmail.dist
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
 
*** Alerts ***
to = 13122690827@linuxidc.com
from = service02@linuxidc.com
 
+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times  in a row
 
+rttdetect
type = rtt
 #in milli seconds
pattern =
<10,<10,<10,<10,<10,<100,>100,>100,>100
edgetrigger = yes
comment = routing messed up again ?
 
+lossdetect
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20%
edgetrigger = yes
comment = suddenly there is packet loss
 
+miniloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
edgetrigger = yes
#pattern = >0%,*12*
comment = detected loss 1 times over the last two hours
 
#+rttdetect
#type = rtt
# in milliseconds
#pattern = <1,<1,<1,<1,<1,<2,>2,>2,>2
#comment = routing messed up again ?
 
+rttbad
type = rtt
# in milliseconds
edgetrigger = yes
pattern = ==S,>20
comment = route
 
+rttbadstart
type = rtt
# in milliseconds
edgetrigger = yes
pattern = ==S,==U
comment = offline at startup
*** Database ***
 
step    = 60
pings    = 20
 
# consfn mrhb steps total
 
AVERAGE  0.5  1  1008
AVERAGE  0.5  12  4320
    MIN  0.5  12  4320
    MAX  0.5  12  4320
AVERAGE  0.5 144  720
    MAX  0.5 144  720
    MIN  0.5 144  720
 
*** Presentation ***
charset = utf-8
template = /usr/local/smokeping/etc/basepage.html.dist
 

    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 

    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 

  • charts
     
    menu = 排行榜
    title = 排行榜
     
    ++ stddev
    sorter = StdDev(entries=>4)
    title = 综合指数排行
    menu = 综合指数排行
    format = 综合指数 %f
     
    ++ max
    sorter = Max(entries=>5)
    title = 最大延迟排名
    menu = 最大延迟排行
    format = 最大延迟时间 %f 秒
     
    ++ loss
    sorter = Loss(entries=>5)
    title = 丢包率排名
    menu = 丢包率排名
    format = 丢包 %f
     
    ++ median
    sorter = Median(entries=>5)
    title = 平均延迟排行
    menu = 平均延迟排名
    format = 平均延迟 %f 秒
     
  • overview
     
    width = 860
    height = 150
    range = 10h
     
  • detail
     
    width = 860
    height = 200
    unison_tolerance = 2
     
    “Last 3 Hours”    3h
    “Last 30 Hours”  30h
    “Last 10 Days”    10d
    “Last 30 Days”  30d
    “Last 90 Days”  90d
    #+ hierarchies
    #++ owner
    #title = Host Owner
    #++ location
    #title = Location
     
    *** Probes ***
     
  • FPing
     
    binary = /usr/local/fping/sbin/fping
     
    *** Slaves ***
    secrets=/usr/local/smokeping/etc/smokeping_secrets.dist
    +boomer
    display_name=boomer
    color=0000ff
     
    +slave2
    display_name=another
    color=00ff00
     
    *** Targets ***
     
    probe = FPing
     
    menu = Top
    #title = Network Latency Grapher
    title = IDC互联网节点品质监察和控制
    #remark = Welcome to the SmokePing website of xxx Company. \
    #        Here you will learn all about the latency of our network.
    remark = Smokeping 网络品质监察和控制类别
     
     
  • TELCOM
     
    menu = 电信
     
    title = 电信
     
    ++ north
    menu = 华北区
     
    title = 华北区
     
     
    +++ beijing
    menu = 北京
     
    title = 北京:218.30.25.45
     
    host = 218.30.25.45
     
     
    +++ tianjin
    menu = 天津
     
    title = 天津:219.150.32.132
     
    host = 219.150.32.132
     
     
    +++ shijiazhuang
    menu = 石家庄
     
    title = 石家庄:123.180.0.1
     
    host = 123.180.0.1
     
     
    +++ huhehaote
    menu = 唐山
     
    title = 黄冈:21九.148.16八.218
     
    host = 219.148.168.218
     
    ++ northeast
    menu = 东北区
     
    title = 东北区
     
     
    +++ qiqihaer
    menu = 通辽
     
    title = 齐齐Hal:22贰.170.0.6一
     
    host = 222.170.0.61
     
     
    +++ changchun
    menu = 长春
     
    title = 长春:222.168.78.1
     
    host = 222.168.78.1
     
     
    +++ jilin
    menu = 吉林
     
    title = 吉林:123.173.127.2
     
    host = 123.173.127.2
     
    ++ east
    menu = 华东区
     
    title = 华东区
     
     
    +++ jinan
    menu = 济南
     
    title = 济南:58.56.25.4
     
    host = 58.56.25.4
     
     
    +++ shanghai
    menu = 上海
     
    title = 上海:116.228.111.118
     
    host = 116.228.111.118
     
     
    +++ nanjing
    menu = 南京
     
    title = 南京:221.231.191.214
     
    host = 221.231.191.214
     
     
    +++ hefei
    menu = 合肥
     
    title = 合肥:61.190.246.5
     
    host = 61.190.246.5
     
     
    +++ nanchang
    menu = 南昌
     
    title = 南昌:202.101.224.68
     
    host = 202.101.224.68
     
     
    +++ hangzhou
    menu = 杭州
     
    title = 杭州:60.191.62.31
     
    host = 60.191.62.31
     
     
    +++ fuzhou
    menu = 福州
     
    title = 福州:202.101.98.55
     
    host = 202.101.98.55
     
    ++ south
    menu = 中南区
     
    title = 中南区
     
     
    +++ luoyang
    menu = 洛阳
     
    title = 洛阳:123.52.130.12
     
    host = 123.52.130.12
     
     
    +++ wuhan
    menu = 武汉
     
    title = 武汉:111.175.233.30
     
    host = 111.175.233.30
     
     
    +++ changsha
    menu = 长沙
     
    title = 长沙:124.232.134.54
     
    host = 124.232.134.54
     
     
    +++ guangzhou
    menu = 广州
     
    title = 广州:58.61.200.1
     
    host = 58.61.200.1
     
     
    +++ shenzhen
    menu = 深圳
     
    title = 深圳:58.60.3.102
     
    host = 58.60.3.102
     
     
    +++ nanning
    menu = 南宁
     
    title = 南宁:222.217.164.38
     
    host = 222.217.164.38
     
     
    +++ haikou
    menu = 海口
     
    title = 海口:218.77.149.238
     
    host = 218.77.149.238
     
    ++ southwest
    menu = 西南区
     
    title = 西南区
     
     
    +++ chengdu
    menu = 成都
     
    title = 成都:61.157.77.1
     
    host = 61.157.77.1
     
     
    +++ chongqing
    menu = 重庆
     
    title = 重庆:218.70.65.254
     
    host = 218.70.65.254
     
     
    +++ guiyang
    menu = 贵阳
     
    title = 贵阳:59.51.128.31
     
    host = 59.51.128.31
     
     
    +++ kunming
    menu = 昆明
     
    title = 昆明:222.172.200.5
    host = 222.172.200.5
     
     
    +++ lasa
    menu = 拉萨
     
    title = 拉萨:124.31.0.1
     
    host = 124.31.0.1
     
    ++ northwest
    menu = 西北区
     
    title = 西北区
     
     
    +++ xian
    menu = 西安
     
    title = 西安:125.76.191.linuxidc
    alerts = someloss
    host = 125.76.191.linuxidc
     
     
    +++ ningxia
    menu = 宁夏
     
    title = 宁夏:124.224.255.54
     
    host = 124.224.255.54
     
     
    +++ lanzhou
    menu = 兰州
     
    title = 兰州:61.178.252.218
     
    host = 61.178.252.218
     
     
    +++ xining
    menu = 西宁
     
    title = 西宁:223.220.241.26
     
    host = 223.220.241.26
     
     
    +++ wulumuqi
    menu = 太原
     
    title = 坎Pina斯:陆一.12八.九陆.1
     
    host = 61.128.96.1
     
  • UNICOM
    menu = 联通
     
    title = 联通
     
     
    ++ north
    menu = 华北区
     
    title = 华北区
     
     
    +++ beijing
    menu = 北京
     
    title = 北京:61.135.150.3
     
    host = 61.135.150.3
     
     
    +++ tianjin
    menu = 天津
     
    title = 天津:202.99.96.38
     
    host = 202.99.96.38
    +++ shijiazhuang
    menu= 石家庄
     
    title = 石家庄:221.192.1.221
     
    host = 221.192.1.221
     
     
    +++ taiyuan
    menu = 太原
     
    title = 太原:218.26.171.2
     
    host = 218.26.171.2
     
    ++ northeast
    menu = 东北区
     
    title = 东北区
     
     
    +++ changchun
    menu = 长春
     
    title = 长春:125.32.127.2
     
    host = 125.32.127.2
     
     
    +++ shenyang
    menu = 沈阳
     
    title = 沈阳:218.60.54.164
     
    host = 218.60.54.164
     
     
    +++ jilin
    menu = 吉林
     
    title = 吉林:218.62.77.121
     
    host = 218.62.77.121
     
    ++ east
    menu = 华东区
     
    title = 华东区
     
     
    +++jinan
    menu = 济南
     
    title = 济南:221.0.2.41
    host = 221.0.2.41
     
     
    +++ shanghai
    menu = 上海
     
    title = 上海:210.22.67.1
     
    host = 210.22.67.1
     
     
    +++ hangzhou
    menu = 杭州
     
    title = 杭州:101.68.92.11
     
    host = 101.68.92.11
     
     
    +++ nanchang
    menu = 南昌
     
    title = 南昌:118.212.189.129
     
    host = 118.212.189.129
     
    ++ south
    menu = 中南区
     
    title = 中南区
     
     
    +++ zhengzhou
    menu = 郑州
     
    title = 郑州:61.168.254.211
     
    host = 61.168.254.211
     
     
    +++ wuhan
    menu = 武汉
     
    title = 武汉:218.106.115.1
     
    host = 218.106.115.1
    自动化安装Smokeping,smokeping安装配置最棒实践。 
     
    +++ guangzhou
    menu = 广州
     
    title = 广州:211.95.193.69
     
    host = 211.95.193.69
     
     
    +++ shenzhen
    menu = 深圳
     
    title = 深圳:58.250.0.1
     
    host = 58.250.0.1
     
     
    +++ nanning
    menu = 南宁
     
    title = 南宁:211.97.71.202
     
    host = 211.97.71.202
     
    ++ southwest
    menu = 西南区
     
    title = 西南区
     
     
    +++ chongqing
    menu = 重庆
     
    title = 重庆:221.5.255.1
     
    host = 221.5.255.1
    ++ northwest
    menu = 西北区
     
    title = 西北区
     
     
    +++ xining
    menu = 西宁
     
    title = 西宁:221.207.27.1
     
    host = 221.207.27.1
     
    ++ ceshiqu
    menu = 测试区1
     
    title = 测试区1
     
     
    +++ test1
    menu = 纳闽联通
     
    title = 哈利法克斯联通:11九.4捌.2二一.2玖
     
    host = 119.48.221.29
     
     
     
    +++ test2
    menu = 辽宁网通
     
    title = 吉林网通:120.捌肆.0.一
     
    host = 120.84.0.1
     
     
    +++ test3
    menu = 巴黎网通
     
    title = 香水之都网通:2十.2二.陆7.一
     
    host = 210.22.67.1
     
     
    +++ test4
    menu = 湖南网通
     
    title = 山东网通:2二一.1壹.13二.二
     
    host = 221.11.132.2
     
     
    +++ test5
    menu = 山东联通
     
    title = 山东联通:22一.13.二一.1玖四
     
    host = 221.13.21.194
     
     
    +++ test6
    menu = 湖南联通
     
    title = 山东联通:2二一.七.13陆.6八
     
    host = 221.7.136.68
     
     
    +++ test7
    menu = 香水之都联通
     
    title = 东京(Tokyo)联通:60.30.128.壹
     
    host = 60.30.128.1
     
     
     
    +++ test8
    menu = 东京活动
     
    title = 日本东京运动:218.20五.12八.壹
     
    host = 218.205.128.1
     
     
     
    +++ test9
    menu = 大庆移动
     
    title = 许昌活动:22一.1捌贰.2二七.一
     
    host = 221.182.227.1
     
     
    +++ test10
    menu = 弗罗茨瓦夫铁通
     
    title = 塞内加尔达喀尔铁通:六1.23二.206.一
     
    host = 61.232.206.1
     
  • CMCC
    menu = 移动
     
    title = 移动
     
     
    ++ north
    menu = 华北区
     
    title = 华北区
     
     
    +++ beijing
    menu = 北京
     
    title = 北京:221.130.33.1
     
    host = 221.130.33.1
     
     
    +++ tianjin
    menu = 天津
     
    title = 天津:211.137.160.1
     
    host = 211.137.160.1
     
     
    +++ qinhuangdao
    menu = 秦皇岛
     
    title = 秦皇岛:211.143.111.14
     
    host = 211.143.111.14
     
     
    +++ shijiazhuang
    menu = 石家庄
     
    title = 石家庄:111.11.64.142
     
    host = 111.11.64.142
     
     
    ++ northeast
    menu = 东北区
     
    title = 东北区
     
     
    +++ dalian
    menu = 大连
     
    title = 大连:211.140.192.4
     
    host = 211.140.192.4
     
     
    ++ east
    menu = 华东区
     
    title = 华东区
     
     
    +++ hefei
    menu = 合肥
     
    title = 合肥:211.138.191.65
     
    host = 211.138.191.65
     
     
    +++ nanjing
    menu = 南京
     
    title = 南京:120.195.118.1
     
    host = 120.195.118.1
     
     
    +++ jinan
    menu = 济南
     
    title = 济南:120.192.97.186
     
    host = 120.192.97.186
     
     
    +++ hangzhou
    menu = 杭州
     
    title = 杭州:111.1.33.222
     
    host = 111.1.33.222
     
     
    +++ nanchang
    menu = 南昌
     
    title = 南昌:218.204.68.41
     
    host = 218.204.68.41
     
     
    +++ jiangsu
    menu = 江苏
     
    title = 江苏:112.22.15.226
     
    host = 112.22.15.226
     
     
    ++ south
    menu = 中南区
     
    title = 中南区
     
     
    +++ zhengzhou
    menu = 郑州
     
    title = 郑州:211.142.127.33
     
    host = 211.142.127.33
     
     
    +++ guangzhou
    menu = 广州
     
    title = 广州:211.139.145.254
     
    host = 211.139.145.254
     
     
    +++ wuhan
    menu = 武汉
     
    title = 武汉:211.137.79.134
     
    host = 211.137.79.134
     
     
    +++ nanning
    menu = 南宁
     
    title = 南宁:218.204.21.10
     
    host = 218.204.21.10
     
     
    ++ southwest
    menu = 西南区
     
    title = 西南区
     
     
    +++ chengdu
    menu = 成都
     
    title = 成都:111.9.16.23
     
    host = 111.9.16.23
     
     
    +++ chongqing
    menu = 重庆
     
    title = 重庆:218.206.10.211
     
    host = 218.206.10.211
     
     
    ++ northwest
    menu = 西北区
     
    title = 西北区
     
  • IDC
    menu = IDC线路
    title = IDC线路
     
    ++ wuxiIDC
    menu = 无锡IDC
    title = 无锡IDC
     
    +++ wuxiIDCdianxin
    menu = 广州邮电通讯
    title = 西安邮电通讯:2二壹.22捌.8二.70
    host = 221.228.82.70
     
    +++ wuxiIDCBGP
    menu = 无锡AC_BGP
    title = 无锡AC_BGP:103.21.119.48
    host = 103.21.119.48
     
    +++ wuxiliantong
    menu = 郑州联通
    title = 青岛联通:12贰.1九二.6玖.117
    host = 122.192.69.117
     
    ++ hulanIDC
    menu = 呼兰IDC
    title = 呼兰IDC
     
    +++ hulanIDCdianxin
    menu = 呼兰邮电通信
    title = 呼兰邮电通讯:十一.2二7.6九.3七
    host = 101.227.69.37
     
    +++ hulanIDCBGP
    menu = 呼兰AC_BGP
    title = 呼兰AC_BGP:103.20.251.7
    host = 103.20.251.7
     
    +++ hulandianxinBGP
    menu = 呼兰电信BGP
    title = 呼兰邮电通信BGP:114.1四一.133.146
    host = 114.141.133.146
     
    ++ nanhuiIDC
    menu = 南汇IDC
    title = 南汇IDC
     
    +++ nanhuiIDCdianxin
    menu = 南汇邮电通信
    title = 南汇邮电通信:22二.73.1二4.23九
    host = 222.73.124.239
     
    +++ nanhuiIDCliantong
    menu = 南汇联通线路
    title = 南汇联通:140.207.21陆.8九
    host = 140.207.216.89
     
    +++ nanhuiIDCBGP
    menu = 南汇邮电通讯BGP线路
    title = 南汇邮电通讯BGP:11四.1四一.13二.1一伍
    host = 114.141.132.115
     
    ++ jinhaiIDC
    menu = 金海IDC
    title = 金海IDC
     
    +++ jinhaiIDCdianxin
    menu = 金海电信线路
    title = 金海邮电通讯:11四.80.200.四7
    host = 114.80.200.47
     
    +++ jinhaiIDCliantong
    menu = 金海联通线路
    title = 金海联通:140.20七.二13.5九
    host = 140.207.213.59
     
    ++ beiaiIDC
    menu = 北艾IDC
    title = 北艾IDC
     
    +++ beiaiIDCdianxin
    menu = 北艾邮电通讯线路
    title = 北艾邮电通讯:11四.80.8八.5一
    host = 114.80.88.51
     
    +++ beiaiIDCliantong
    menu = 北艾联通线路
    title = 北艾联通:112.65.240.1陆一
    host = 112.65.240.161
     
    ++ kunshanIDC
    menu = 昆山IDC
    title = 昆山IDC
     
    +++ kunshanIDCdianxin
    menu = 昆山电线线路
    title = 昆山邮电通讯:180.九七.八1.242
    host = 180.97.81.242
     
    +++ kunshanIDCliantong
    menu = 昆山联通线路
    title = 昆山联通:11二.80.四一.24四
    host = 112.80.41.244
     
    ++ jinqiaoIDC
    menu = 金桥IDC
    title = 金桥IDC
     
    +++ jinqiaoIDCdianxin
    menu = 金桥邮电通信线路
    title = 金桥邮电通信:180.一5叁.240.38
    host = 180.153.240.38
     
    +++ jinqiaoIDCliantong
    menu = 金桥牌联合会通线路
    title = 金桥牌联合会通:11二.陆伍.23四.34
    host = 112.65.234.34
     
    ++ luguIDC
    menu = 鲁谷IDC
    title = 鲁谷IDC
     
    +++ luguIDCBGP
    menu = 鲁谷BGP线路
    title = 鲁谷BGP:24.202.141.142
    host = 124.202.141.142
     
    ++ nujiangIDC
    menu = 怒江IDC
    title = 怒江IDC
     
    +++ nujiangIDCyidong
    menu = 乌伦古河活动线路
    title = 珠江运动:2贰一.1八一.6四.二
    host = 221.181.64.2
     
    ++ changshaIDC
    menu = 长沙IDC
    title = 长沙IDC
     
    +++ changshaIDCdianxin
    menu = 麦德林电信线路
    title = 马赛邮电通讯:12肆.232.15一.250
    host = 124.232.151.250
     
    ++ yizhangIDC
    menu = 亦庄IDC
    title = 亦庄IDC
     
    +++ yizhuangIDCBGP
    menu = 亦庄BGP线路
    title = 亦庄BGP:43.240.245.247
    host = 43.240.245.247
     
    ++ xianggangIDC
    menu = 香港IDC
    title = 香港IDC
     
    +++ xianggangIDCBGP
    menu = 香港BGP线路
    title = 香港BGP:118.193.128.4
    host = 118.193.128.4
     
    +++ wuxiMPLS
    menu = 无锡AC_BGP
    title = 无锡MPLS:10.234.1.254
    host = 10.234.1.254
     
    EOF
    chmod +x /etc/init.d/smokeping
    chkconfig smokeping on
    chkconfig httpd on
    /etc/init.d/httpd start
    /etc/init.d/smokeping start
    if [ $? -eq 0 ];then
    echo -e “\\033[32m smokeping setup successfull
    URR:”
    fi

else

else

4、效果图及图片参数解释

    yum install ntpdate -y

    yum install ntpdate -y

4.1效果图

    /usr/sbin/ntpdate time1.aliyun.com

    /usr/sbin/ntpdate time1.aliyun.com

澳门金沙国际 1

    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 

    echo “*/5 * * * * /usr/sbin/ntpdate -s
time1.aliyun.com”>>/var/spool/cron/root 

肆.二 图表参数解释

fi

fi

    4.贰.一  median
rtt:中间数不是平均值。Smokeping有各连串型的探针,探针在暗许的设置下,每300秒向目标设备发送20测探测数据包。

clear

clear

    纵然那2十一个数据包都重返的话,它就记下下了二十个EvoqueTT,那么Median
奥迪Q5TT就是第7个包的GL450TT;

echo
“##########################################”

echo
“##########################################”

    假若有4个包不见的话,那么Median 汉兰达TT就是第四个重临的包的宝马X3TT值。

echo “Auto Install smokeping-2.6.11          ##”

echo “Auto Install smokeping-2.6.11          ##”

    四.二.2 Avg EnclaveTT:它是每二个测试回合中全体QX56TT的算术评价值。

echo “Press Ctrl + C to cancel                ##”

echo “Press Ctrl + C to cancel                ##”

    4.2.三 Avg pkt loss:丢包率=抛弃的数据包/发送累计的数据包*100%

echo “Any key to continue                    ##”

echo “Any key to continue                    ##”

    4.2.4 Probe:20ICMP Echo Pings(56 Bytes)every

echo
“##########################################”

echo
“##########################################”

   
每贰个冰雪蓝的短横线都是多个测试回合60秒内用ping测试23回。灰湖绿画出的是中间数的岗位,一个回合中的其余值都在它周边被以灰度的款型被勾勒。

read -n 1

read -n 1

正文永久更新链接地址:http://www.linuxidc.com/Linux/2017-02/140968.htm

/etc/init.d/iptables status >/dev/null 2>&1

/etc/init.d/iptables status >/dev/null 2>&1

澳门金沙国际 2

if [ $? -eq 0 ]

if [ $? -eq 0 ]

then

then

iptables -I INPUT -p tcp –dport 80 -j ACCEPT &&

iptables -I INPUT -p tcp –dport 80 -j ACCEPT &&

iptables-save >/dev/null 2>&1

iptables-save >/dev/null 2>&1

else

else

    echo -e “\033[32m iptables is stopd\033[0m”

    echo -e “\033[32m iptables is stopd\033[0m”

fi

fi

IP=`/sbin/ifconfig|sed -n ‘/inet
addr/s/^[^:]*:\([0-9.]\{7,15\}\) .*/\1/1p’|sed -n ‘1p’`

IP=`/sbin/ifconfig|sed -n ‘/inet
addr/s/^[^:]*:\([0-9.]\{7,15\}\) .*/\1/1p’|sed -n ‘1p’`

sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config

sed -i “s/SELINUX=enforcing/SELINUX=disabled/”  /etc/selinux/config

setenforce 0

setenforce 0

rpm -Uvh

1>/dev/null

rpm -Uvh

1>/dev/null

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-*

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-*

if [ -d /opt ];then

if [ -d /opt ];then

    cd /opt

    cd /opt

else

else

    mkdir -p /opt && cd /opt

    mkdir -p /opt && cd /opt

fi

fi

wget -c

wget -c

tar -xvf smokeping-2.6.11.tar.gz 1>/dev/null

tar -xvf smokeping-2.6.11.tar.gz 1>/dev/null

cd /opt/smokeping-2.6.11

cd /opt/smokeping-2.6.11

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

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

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

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

/usr/bin/gmake install  1>/dev/null

/usr/bin/gmake install  1>/dev/null

cd /usr/local/smokeping

cd /usr/local/smokeping

mkdir cache data var 1>/dev/null

mkdir cache data var 1>/dev/null

touch /var/log/smokeping.log

touch /var/log/smokeping.log

chown -R apache:apache cache data var

chown -R apache:apache cache data var

chown -R apache:apache /var/log/smokeping.log

chown -R apache:apache /var/log/smokeping.log

mv /usr/local/smokeping/htdocs/smokeping.fcgi.dist 
/usr/local/smokeping/htdocs/smokeping.fcgi

mv /usr/local/smokeping/htdocs/smokeping.fcgi.dist 
/usr/local/smokeping/htdocs/smokeping.fcgi

mv /usr/local/smokeping/etc/config.dist  /usr/local/smokeping/etc/config

mv /usr/local/smokeping/etc/config.dist  /usr/local/smokeping/etc/config

cp -f /usr/local/smokeping/etc/config
/usr/local/smokeping/etc/config.back

cp -f /usr/local/smokeping/etc/config
/usr/local/smokeping/etc/config.back

sed -i “s/some.url/IP/g” /usr/local/smokeping/etc/config

sed -i “s/some.url/IP/g” /usr/local/smokeping/etc/config

chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist

chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist

 

 

if [ -d /opt ];then

if [ -d /opt ];then

    cd /opt

    cd /opt

else

else

    mkdir -p /opt && cd /opt

    mkdir -p /opt && cd /opt

fi

fi

wget -c -O /opt/fping-4.0.tar.gz

wget -c -O /opt/fping-4.0.tar.gz

tar zxvf fping-4.0.tar.gz

tar zxvf fping-4.0.tar.gz

cd fping-4.0

cd fping-4.0

./configure –prefix=/usr/local/fping

./configure –prefix=/usr/local/fping

make && make install

make && make install

sed -i “s#`grep fping /usr/local/smokeping/etc/config`#binary =
/usr/local/fping/sbin/fping#g” /usr/local/smokeping/etc/config

sed -i “s#`grep fping /usr/local/smokeping/etc/config`#binary =
/usr/local/fping/sbin/fping#g” /usr/local/smokeping/etc/config

sed -i “148i’–font TITLE:20:”WenQuanYi\ Zen\ Hei\ Mono”‘\,”
/usr/local/smokeping/lib/Smokeping/Graphs.pm

sed -i “148i’–font TITLE:20:”WenQuanYi\ Zen\ Hei\ Mono”‘\,”
/usr/local/smokeping/lib/Smokeping/Graphs.pm

cp -rf /etc/httpd/conf/httpd.conf  /etc/httpd/conf/httpd.conf.back

cp -rf /etc/httpd/conf/httpd.conf  /etc/httpd/conf/httpd.conf.back

cat >> /etc/httpd/conf/httpd.conf <<‘EOF’

cat >> /etc/httpd/conf/httpd.conf <<‘EOF’

Alias /cache “/usr/local/smokeping/cache/”

Alias /cache “/usr/local/smokeping/cache/”

Alias /cropper “/usr/local/smokeping/htdocs/cropper/”

Alias /cropper “/usr/local/smokeping/htdocs/cropper/”

Alias /smokeping “/usr/local/smokeping/htdocs/smokeping.fcgi”

Alias /smokeping “/usr/local/smokeping/htdocs/smokeping.fcgi”

<Directory “/usr/local/smokeping”>

<Directory “/usr/local/smokeping”>

AllowOverride None

AllowOverride None

Options All

Options All

AddHandler cgi-script .fcgi .cgi

AddHandler cgi-script .fcgi .cgi

Order allow,deny

Order allow,deny

Allow from all

Allow from all

DirectoryIndex smokeping.fcgi

DirectoryIndex smokeping.fcgi

</Directory>

</Directory>

EOF

EOF

 

 

if [ -f /etc/init.d/smokeping ];then

if [ -f /etc/init.d/smokeping ];then

    echo “/etc/init.d/smokeping is exist”

    echo “/etc/init.d/smokeping is exist”

else

else

    touch /etc/init.d/smokeping

    touch /etc/init.d/smokeping

    cat > /etc/init.d/smokeping <<‘EOF’

    cat > /etc/init.d/smokeping <<‘EOF’

    #!/bin/bash

    #!/bin/bash

    #chkconfig: 2345 80 05

    #chkconfig: 2345 80 05

    # Description: Smokeping init.d script

    # Description: Smokeping init.d script

    # Create by : Mox

    # Create by : Mox

    # Get function from functions library

    # Get function from functions library

    . /etc/init.d/functions

    . /etc/init.d/functions

    # Start the service Smokeping

    # Start the service Smokeping

    smokeping=/usr/local/smokeping/bin/smokeping

    smokeping=/usr/local/smokeping/bin/smokeping

    prog=smokeping

    prog=smokeping

    pidfile=${PIDFILE-/usr/local/smokeping/var/smokeping.pid}

    pidfile=${PIDFILE-/usr/local/smokeping/var/smokeping.pid}

    lockfile=${LOCKFILE-/var/lock/subsys/smokeping}

    lockfile=${LOCKFILE-/var/lock/subsys/smokeping}

    RETVAL=0

    RETVAL=0

    STOP_TIMEOUT=${STOP_TIMEOUT-10}

    STOP_TIMEOUT=${STOP_TIMEOUT-10}

    LOG=/var/log/smokeping.log

    LOG=/var/log/smokeping.log

 

 

    start() {

    start() {

        echo -n $”Starting $prog: “

        echo -n $”Starting $prog: “

        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS

        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS

        RETVAL=$?

        RETVAL=$?

        echo

        echo

        [ $RETVAL = 0 ] && touch ${lockfile}

        [ $RETVAL = 0 ] && touch ${lockfile}

        return $RETVAL

        return $RETVAL

    }

    }

 

 

 

 

    # Restart the service Smokeping

    # Restart the service Smokeping

    stop() {

    stop() {

        echo -n $”Stopping $prog: “

        echo -n $”Stopping $prog: “

        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping

        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping

        RETVAL=$?

        RETVAL=$?

        echo

        echo

        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}

        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}

    }

    }

 

 

    STOP_TIMEOUT=${STOP_TIMEOUT-10}

    STOP_TIMEOUT=${STOP_TIMEOUT-10}

    LOG=/var/log/smokeping.log

    LOG=/var/log/smokeping.log

 

 

    start() {

    start() {

        echo -n $”Starting $prog: “

        echo -n $”Starting $prog: “

        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS

        LANG=$HTTPD_LANG daemon –pidfile=${pidfile} $smokeping
$OPTIONS

        RETVAL=$?

        RETVAL=$?

        echo

        echo

        [ $RETVAL = 0 ] && touch ${lockfile}

        [ $RETVAL = 0 ] && touch ${lockfile}

        return $RETVAL

        return $RETVAL

    }

    }

 

 

 

 

    # Restart the service Smokeping

    # Restart the service Smokeping

    stop() {

    stop() {

        echo -n $”Stopping $prog: “

        echo -n $”Stopping $prog: “

        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping

        killproc -p ${pidfile} -d ${STOP_TIMEOUT} $smokeping

        RETVAL=$?

        RETVAL=$?

        echo

        echo

        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}

        [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}

    }

    }

 

 

    case “$1” in

    case “$1” in

    start)

    start)

        start

        start

    ;;

    ;;

    stop)

    stop)

        stop

        stop

    ;;

    ;;

    status)

    status)

        status -p ${pidfile} $httpd

        status -p ${pidfile} $httpd

        RETVAL=$?

        RETVAL=$?

    ;;

    ;;

    restart)

    restart)

        stop

        stop

        start

        start

        ;;

        ;;

    *)

    *)

        echo $”Usage: $prog {start|stop|restart|status}”

        echo $”Usage: $prog {start|stop|restart|status}”

        RETVAL=2

        RETVAL=2

 

 

    esac

    esac

 

 

EOF

EOF

fi

fi

 

 

cat > /usr/local/smokeping/etc/config <<‘EOF’

cat > /usr/local/smokeping/etc/config <<‘EOF’

*** General ***

*** General ***

 

 

owner    = caoyf

owner    = caoyf

contact  = caoyf1992@163.com

contact  = caoyf1992@163.com

#mailhost = smtp.163.com:25

#mailhost = smtp.163.com:25

#mailusr  = xuel@linuxidc

#mailusr  = xuel@linuxidc

#mailpwd  = anchnet@123.com

#mailpwd  = anchnet@123.com

#sendmail = /usr/sbin/sendmail

#sendmail = /usr/sbin/sendmail

# NOTE: do not put the Image Cache below cgi-bin

# NOTE: do not put the Image Cache below cgi-bin

# since all files under cgi-bin will be executed … this is not

# since all files under cgi-bin will be executed … this is not

# good for images.

# good for images.

imgcache = /usr/local/smokeping/cache

imgcache = /usr/local/smokeping/cache

imgurl  = cache

imgurl  = cache

datadir  = /usr/local/smokeping/data

datadir  = /usr/local/smokeping/data

piddir  = /usr/local/smokeping/var

piddir  = /usr/local/smokeping/var

cgiurl  =

cgiurl  =

smokemail = /usr/local/smokeping/etc/smokemail.dist

smokemail = /usr/local/smokeping/etc/smokemail.dist

tmail = /usr/local/smokeping/etc/tmail.dist

tmail = /usr/local/smokeping/etc/tmail.dist

# specify this to get syslog logging

# specify this to get syslog logging

syslogfacility = local0

syslogfacility = local0

# each probe is now run in its own process

# each probe is now run in its own process

# disable this to revert to the old behaviour

# disable this to revert to the old behaviour

# concurrentprobes = no

# concurrentprobes = no

 

 

*** Alerts ***

*** Alerts ***

to = 8578545954@qq.com

to = 8578545954@qq.com

from = qsd@lenxxx.com.cn

from = qsd@lenxxx.com.cn

 

 

+someloss

+someloss

type = loss

type = loss

# in percent

# in percent

pattern = >0%,*12*,>0%,*12*,>0%

pattern = >0%,*12*,>0%,*12*,>0%

comment = loss 3 times  in a row

comment = loss 3 times  in a row

 

 

+rttdetect

+rttdetect

type = rtt

type = rtt

 #in milli seconds

 #in milli seconds

pattern =
<10,<10,<10,<10,<10,<100,>100,>100,>100

pattern =
<10,<10,<10,<10,<10,<100,>100,>100,>100

edgetrigger = yes

edgetrigger = yes

comment = routing messed up again ?

comment = routing messed up again ?

 

 

+lossdetect

+lossdetect

type = loss

type = loss

# in percent

# in percent

pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20%

pattern = ==0%,==0%,==0%,==0%,>20%,>20%,>20%

edgetrigger = yes

edgetrigger = yes

comment = suddenly there is packet loss

comment = suddenly there is packet loss

 

 

+miniloss

+miniloss

type = loss

type = loss

# in percent

# in percent

pattern = >0%,*12*,>0%,*12*,>0%

pattern = >0%,*12*,>0%,*12*,>0%

edgetrigger = yes

edgetrigger = yes

#pattern = >0%,*12*

#pattern = >0%,*12*

comment = detected loss 1 times over the last two hours

comment = detected loss 1 times over the last two hours

 

 

#+rttdetect

#+rttdetect

#type = rtt

#type = rtt

# in milliseconds

# in milliseconds

#pattern = <1,<1,<1,<1,<1,<2,>2,>2,>2

#pattern = <1,<1,<1,<1,<1,<2,>2,>2,>2

#comment = routing messed up again ?

#comment = routing messed up again ?

 

 

+rttbad

+rttbad

type = rtt

type = rtt

# in milliseconds

# in milliseconds

edgetrigger = yes

edgetrigger = yes

pattern = ==S,>20

pattern = ==S,>20

comment = route

comment = route

 

 

+rttbadstart

+rttbadstart

type = rtt

type = rtt

# in milliseconds

# in milliseconds

edgetrigger = yes

edgetrigger = yes

pattern = ==S,==U

pattern = ==S,==U

comment = offline at startup

comment = offline at startup

*** Database ***

*** Database ***

 

 

step    = 60

step    = 60

pings    = 20

pings    = 20

 

 

# consfn mrhb steps total

# consfn mrhb steps total

 

 

AVERAGE  0.5  1  1008

AVERAGE  0.5  1  1008

AVERAGE  0.5  12  4320

AVERAGE  0.5  12  4320

    MIN  0.5  12  4320

    MIN  0.5  12  4320

    MAX  0.5  12  4320

    MAX  0.5  12  4320

AVERAGE  0.5 144  720

AVERAGE  0.5 144  720

    MAX  0.5 144  720

    MAX  0.5 144  720

    MIN  0.5 144  720

    MIN  0.5 144  720

 

 

*** Presentation ***

*** Presentation ***

charset = utf-8

charset = utf-8

template = /usr/local/smokeping/etc/basepage.html.dist

template = /usr/local/smokeping/etc/basepage.html.dist

 

 

+ charts

+ charts

 

 

menu = 排行榜

menu = 排行榜

title = 排行榜

title = 排行榜

 

 

++ stddev

++ stddev

sorter = StdDev(entries=>4)

sorter = StdDev(entries=>4)

title = 综合指数排名

title = 综合指数排行

menu = 综合指数排名

menu = 综合指数排行

format = 综合指数 %f

format = 综合指数 %f

 

 

++ max

++ max

sorter = Max(entries=>5)

sorter = Max(entries=>5)

title = 最大延迟排名

title = 最大延迟排名

menu = 最大延迟排名

menu = 最大延迟排名

format = 最大延迟时间 %f 秒

format = 最大延迟时间 %f 秒

 

 

++ loss

++ loss

sorter = Loss(entries=>5)

sorter = Loss(entries=>5)

title = 丢包率排名

title = 丢包率排行

menu = 丢包率排名

menu = 丢包率排名

format = 丢包 %f

format = 丢包 %f

 

 

++ median

++ median

sorter = Median(entries=>5)

sorter = Median(entries=>5)

title = 平均延迟排名

title = 平均延迟排名

menu = 平均延迟排名

menu = 平均延迟名次

format = 平均延迟 %f 秒

format = 平均延迟 %f 秒

 

 

+ overview

+ overview

 

 

width = 860

width = 860

height = 150

height = 150

range = 10h

range = 10h

 

 

+ detail

+ detail

 

 

width = 860

width = 860

height = 200

height = 200

unison_tolerance = 2

unison_tolerance = 2

 

 

“Last 3 Hours”    3h

“Last 3 Hours”    3h

“Last 30 Hours”  30h

“Last 30 Hours”  30h

“Last 10 Days”    10d

“Last 10 Days”    10d

“Last 30 Days”  30d

“Last 30 Days”  30d

“Last 90 Days”  90d

“Last 90 Days”  90d

#+ hierarchies

#+ hierarchies

#++ owner

#++ owner

#title = Host Owner

#title = Host Owner

#++ location

#++ location

#title = Location

#title = Location

 

 

*** Probes ***

*** Probes ***

 

 

+ FPing

+ FPing

 

 

binary = /usr/local/fping/sbin/fping

binary = /usr/local/fping/sbin/fping

 

 

*** Slaves ***

*** Slaves ***

secrets=/usr/local/smokeping/etc/smokeping_secrets.dist

secrets=/usr/local/smokeping/etc/smokeping_secrets.dist

+boomer

+boomer

display_name=boomer

display_name=boomer

color=0000ff

color=0000ff

 

 

+slave2

+slave2

display_name=another

display_name=another

color=00ff00

color=00ff00

 

 

*** Targets ***

*** Targets ***

 

 

probe = FPing

probe = FPing

 

 

menu = Top

menu = Top

#title = Network Latency Grapher

#title = Network Latency Grapher

title = 欢迎访问XXXIDC互联网节点品质监察和控制

title = 欢迎访问XXXIDC网络节点品质监控

#remark = Welcome to the SmokePing website of xxx Company. \

#remark = Welcome to the SmokePing website of xxx Company. \

#        Here you will learn all about the latency of our network.

#        Here you will learn all about the latency of our network.

remark = XXXXX网络性能监控体系

remark = XXXXX网络品质监察和控制种类

 

 

 

 

#+ Mobile

#+ Mobile

+ YD_huabei

+ YD_huabei

menu = China Mobile huabei

menu = China Mobile huabei

title = 移动 华北地区

title = 移动 华北地区

 

 

++ YD_beiing

++ YD_beiing

menu = 移动上海

menu = 移动巴黎

title = YD_beijing 218.200.240.1

title = YD_beijing 218.200.240.1

host = 218.200.240.1

host = 218.200.240.1

 

 

++ YD_tianjin

++ YD_tianjin

menu = 移动圣萨尔瓦多

menu = 移动西雅图

title = YD_tianjin 211.137.160.1

title = YD_tianjin 211.137.160.1

host = 211.137.160.1

host = 211.137.160.1

 

 

++ YD_shijiazhuang

++ YD_shijiazhuang

menu = 移动乌鲁木齐

menu = 移动哈尔滨

title = YD_shijiazhuang 218.207.64.1

title = YD_shijiazhuang 218.207.64.1

host = 218.207.64.1

host = 218.207.64.1

 

 

++ YD_taiyuan

++ YD_taiyuan

menu = 移动哈里斯堡

menu = 移动俄克拉荷马城

title = YD_taiyuan 211.142.0.1

title = YD_taiyuan 211.142.0.1

host = 211.142.0.1

host = 211.142.0.1

 

 

++ YD_huabeibb

++ YD_huabeibb

menu = 移动华北着力

menu = 移动华北大旨

title = YD_huabeibb 211.136.67.101

title = YD_huabeibb 211.136.67.101

host = 211.136.67.101

host = 211.136.67.101

 

 

+ YD_dongbei

+ YD_dongbei

menu = China Mobile dongbei

menu = China Mobile dongbei

title = 移动西北地区

title = 移动东南地区

 

 

++ YD_shenyang

++ YD_shenyang

menu = 移动武汉

menu = 移动博洛尼亚

title = YD_shenyang 221.180.131.1

title = YD_shenyang 221.180.131.1

host = 221.180.131.1

host = 221.180.131.1

 

 

++ YD_changchun

++ YD_changchun

menu = 移动瓦伦西亚

menu = 移动塞维利亚

title = YD_changchun 211.141.71.1

title = YD_changchun 211.141.71.1

host = 211.141.71.1

host = 211.141.71.1

 

 

+ YD_huadong

+ YD_huadong

menu = China Mobile huadong

menu = China Mobile huadong

title = 移动华东地区

title = 移动华东地区

 

 

++ YD_huadongbb

++ YD_huadongbb

menu = 移动华东为主

menu = 移动华东主导

title = YD_huadongbb 211.141.71.1

title = YD_huadongbb 211.141.71.1

host = 211.141.71.1

host = 211.141.71.1

 

 

++ YD_shanghai

++ YD_shanghai

menu = 移动新加坡

menu = 移动东京

title = YD_shanghai 117.131.0.1

title = YD_shanghai 117.131.0.1

host = 117.131.0.1

host = 117.131.0.1

 

 

++ YD_wuxi

++ YD_wuxi

menu = 移动沈阳

menu = 移动沈阳

title = YD_wuxi 120.195.152.1

title = YD_wuxi 120.195.152.1

host = 120.195.152.1

host = 120.195.152.1

 

 

++ YD_yantai

++ YD_yantai

menu = 移动金华

menu = 移动贵阳

title = YD_yantai 211.137.206.113

title = YD_yantai 211.137.206.113

host = 211.137.206.113

host = 211.137.206.113

 

 

++ YD_hangzhou

++ YD_hangzhou

menu = 移动阿塞拜疆巴库

menu = 移动乔治敦

title = YD_hangzhou 211.140.0.8

title = YD_hangzhou 211.140.0.8

host = 211.140.0.8

host = 211.140.0.8

 

 

+ YD_zhongnan

+ YD_zhongnan

menu = China Mobile zhongnan

menu = China Mobile zhongnan

title = 移动中南地区

title = 移动中南地区

 

 

++ YD_wuhan

++ YD_wuhan

menu = 移动苏州

menu = 移动斯特拉斯堡

title = YD_wuhan 120.202.0.1

title = YD_wuhan 120.202.0.1

host = 120.202.0.1

host = 120.202.0.1

 

 

++ YD_guangzhou

++ YD_guangzhou

menu = 移动广州

menu = 移动墨尔本

title = YD_guangzhou 211.139.145.239

title = YD_guangzhou 211.139.145.239

host = 211.139.145.239

host = 211.139.145.239

 

 

++ YD_changsha

++ YD_changsha

menu = 移动莱比锡

menu = 移动斯特拉斯堡

title = YD_changsha 211.143.5.1

title = YD_changsha 211.143.5.1

host = 211.143.5.1

host = 211.143.5.1

 

 

+ YD_xibei

+ YD_xibei

menu = China Mobile xibei

menu = China Mobile xibei

title = 移动西南地区

title = 移动西南地区

 

 

++ YD_xining

++ YD_xining

menu = 移动铜陵

menu = 移动上饶

title = YD_xining 111.12.255.29

title = YD_xining 111.12.255.29

host = 111.12.255.29

host = 111.12.255.29

 

 

++ YD_yinchuan

++ YD_yinchuan

menu = 移动三亚

menu = 移动岳阳

title = YD_yinchuan 111.49.10.1

title = YD_yinchuan 111.49.10.1

host = 111.49.10.1

host = 111.49.10.1

 

 

++ YD_xian

++ YD_xian

menu = 移动布里Stowe

menu = 移动奥兰多

title = YD_xian 218.200.63.185

title = YD_xian 218.200.63.185

host = 218.200.63.185

host = 218.200.63.185

 

 

+ YD_HuiZong

+ YD_HuiZong

menu = China Mobile HuiZong

menu = China Mobile HuiZong

title = 移动汇总

title = 移动汇总

 

 

++ YD_HuiZong

++ YD_HuiZong

menu = 移动汇总

menu = 移动汇总

title = YD_HuiZong

title = YD_HuiZong

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

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

 

 

#+ Unicom

#+ Unicom

+ UN_xibei

+ UN_xibei

menu = China Unicom xibei

menu = China Unicom xibei

title = 联通东南地区

title = 联通西南地区

 

 

++ UN_lanzhou

++ UN_lanzhou

menu = 联通惠州

menu = 联通乌鲁木齐

title = UN_lanzhou 115.85.195.1

title = UN_lanzhou 115.85.195.1

host = 115.85.195.1

host = 115.85.195.1

 

 

++ UN_xian

++ UN_xian

menu = 联通塞内加尔达喀尔

menu = 联通莱比锡

title = UN_xian 124.89.76.1

title = UN_xian 124.89.76.1

host = 124.89.76.1

host = 124.89.76.1

 

 

++ UN_jiuquan

++ UN_jiuquan

menu = 联通云浮

menu = 联通莱芜

title = UN_jiuquan 221.7.43.1

title = UN_jiuquan 221.7.43.1

host = 221.7.43.1

host = 221.7.43.1

 

 

+ UN_xinan

+ UN_xinan

menu = China Unicom xinan

menu = China Unicom xinan

title = 联通西北地区

title = 联通西北地区

 

 

++ UN_xinanbb

++ UN_xinanbb

menu = 联通西北骨干

menu = 联通西北骨干

title = UN_xinanbb 219.158.14.66

title = UN_xinanbb 219.158.14.66

host = 219.158.14.66

host = 219.158.14.66

 

 

++ UN_chongqing

++ UN_chongqing

menu = 联通哈拉雷

menu = 联通菲尼克斯

title = UN_chongqing 221.5.203.86

title = UN_chongqing 221.5.203.86

host = 221.5.203.86

host = 221.5.203.86

 

 

++ UN_guiyang

++ UN_guiyang

menu = 联通佛山

menu = 联通绍兴

title = UN_guiyang 58.16.254.82

title = UN_guiyang 58.16.254.82

host = 58.16.254.82

host = 58.16.254.82

 

 

++ UN_puer

++ UN_puer

menu = 联通洞庭碧螺春

menu = 联通西湖龙井

title = UN_puer 221.3.161.1

title = UN_puer 221.3.161.1

host = 221.3.161.1

host = 221.3.161.1

 

 

+ UN_zhongnan

+ UN_zhongnan

menu = China Unicom zhongnan

menu = China Unicom zhongnan

title = 联通中南地区

title = 联通中南地区

 

 

++ UN_zhongnanbb

++ UN_zhongnanbb

menu = 联通中南骨干

menu = 联通中南骨干

title = UN_zhongnanbb 219.158.112.46

title = UN_zhongnanbb 219.158.112.46

host = 219.158.112.46

host = 219.158.112.46

 

 

++ UN_kaifeng

++ UN_kaifeng

menu = 联通大同

menu = 联通马海口

title = UN_kaifeng 61.53.134.1

title = UN_kaifeng 61.53.134.1

host = 61.53.134.1

host = 61.53.134.1

 

 

++ UN_changsha

++ UN_changsha

menu = 联通塞内加尔达喀尔

menu = 联通马普托

title = UN_changsha 58.20.127.238

title = UN_changsha 58.20.127.238

host = 58.20.127.238

host = 58.20.127.238

 

 

++ UN_nanning

++ UN_nanning

menu = 联通卡托维兹

menu = 联通伯明翰

title = UN_nanning 221.7.128.68

title = UN_nanning 221.7.128.68

host = 221.7.128.68

host = 221.7.128.68

 

 

++ UN_guangzhou

++ UN_guangzhou

menu = 联通特拉维夫

menu = 联通里斯本

title = UN_guangzhou 221.4.66.66

title = UN_guangzhou 221.4.66.66

host = 221.4.66.66

host = 221.4.66.66

 

 

++ UN_wuhan

++ UN_wuhan

menu = 联通弗罗茨瓦夫

menu = 联通弗罗茨瓦夫

title = UN_wuhan 218.104.111.122

title = UN_wuhan 218.104.111.122

host = 218.104.111.122

host = 218.104.111.122

 

 

++ UN_zhengzhou

++ UN_zhengzhou

menu = 联通梅里达

menu = 联通卡托维兹

title = UN_zhengzhou 125.46.62.1

title = UN_zhengzhou 125.46.62.1

host = 125.46.62.1

host = 125.46.62.1

 

 

+ UN_huadong

+ UN_huadong

menu = China Unicom huadong

menu = China Unicom huadong

title = 联通华东地区

title = 联通华东地区

 

 

++ UN_shanghai

++ UN_shanghai

menu = 联通新加坡

menu = 联通北京

title = UN_shanghai 58.246.48.1

title = UN_shanghai 58.246.48.1

host = 58.246.48.1

host = 58.246.48.1

 

 

++ UN_hangzhou

++ UN_hangzhou

menu = 联通阿塞拜疆巴库

menu = 联通伯明翰

title = UN_hangzhou 60.12.141.49

title = UN_hangzhou 60.12.141.49

host = 60.12.141.49

host = 60.12.141.49

 

 

++ UN_putian

++ UN_putian

menu = 联通德阳

menu = 联通泰州

title = UN_putian 58.22.128.2

title = UN_putian 58.22.128.2

host = 58.22.128.2

host = 58.22.128.2

 

 

++ UN_nanchang

++ UN_nanchang

menu = 联通佛山

menu = 联通保定

title = UN_nanchang 58.17.30.1

title = UN_nanchang 58.17.30.1

host = 58.17.30.1

host = 58.17.30.1

 

 

++ UN_xiamen

++ UN_xiamen

menu = 联通地拉那

menu = 联通瓜达拉哈拉

title = UN_xiamen 36.250.77.34

title = UN_xiamen 36.250.77.34

host = 36.250.77.34

host = 36.250.77.34

 

 

++ UN_qingdao

++ UN_qingdao

menu = 联通克利夫兰

menu = 联通圣Jose

title = UN_qingdao 202.102.128.68

title = UN_qingdao 202.102.128.68

host = 202.102.128.68

host = 202.102.128.68

 

 

+ UN_dongbei

+ UN_dongbei

menu = China Unicom dongbei

menu = China Unicom dongbei

title = 联通西南地区

title = 联通西北地区

 

 

++ UN_dongbeibb

++ UN_dongbeibb

menu = 联通西北中央

menu = 联通东南中央

title = UN_dongbeibb 219.158.105.234

title = UN_dongbeibb 219.158.105.234

host = 219.158.105.234

host = 219.158.105.234

 

 

++ UN_shenyang

++ UN_shenyang

menu = 联通毕尔巴鄂

menu = 联通布里斯托

title = UN_shenyang 124.95.173.47

title = UN_shenyang 124.95.173.47

host = 124.95.173.47

host = 124.95.173.47

 

 

++ UN_jilin

++ UN_jilin

menu = 联通西藏

menu = 联通湖南

title = UN_jilin 139.214.195.240

title = UN_jilin 139.214.195.240

host = 139.214.195.240

host = 139.214.195.240

 

 

++ UN_haerbin

++ UN_haerbin

menu = 联通福州

menu = 联通澳门

title = UN_haerbin 202.97.207.240

title = UN_haerbin 202.97.207.240

host = 202.97.207.240

host = 202.97.207.240

 

 

++ UN_fushun

++ UN_fushun

menu = 联通大理

menu = 联通咸宁

title = UN_fushun 60.18.95.1

title = UN_fushun 60.18.95.1

host = 60.18.95.1

host = 60.18.95.1

 

 

+ UN_huabei

+ UN_huabei

menu = China Unicom huabei

menu = China Unicom huabei

title = 联通华北地区

title = 联通华北地区

 

 

++ UN_huabeibb

++ UN_huabeibb

menu = 联通华北骨干

menu = 联通华北着力

title = UN_huabeibb 219.158.104.134

title = UN_huabeibb 219.158.104.134

host = 219.158.104.134

host = 219.158.104.134

 

 

++ UN_alashan

++ UN_alashan

menu = 联通阿拉善

menu = 联通阿拉善

title = UN_alashan 1.24.64.1

title = UN_alashan 1.24.64.1

host = 1.24.64.1

host = 1.24.64.1

 

 

++ UN_shijiazhuang

++ UN_shijiazhuang

menu = 联通福州

menu = 联通福州

title = UN_shijiazhuang 110.228.158.1

title = UN_shijiazhuang 110.228.158.1

host = 110.228.158.1

host = 110.228.158.1

 

 

++ UN_tianjin

++ UN_tianjin

menu = 联通圣Juan

menu = 联通达卡

title = UN_tianjin 113.31.41.119

title = UN_tianjin 113.31.41.119

host = 113.31.41.119

host = 113.31.41.119

 

 

++ UN_beijing

++ UN_beijing

menu = 联通香港

menu = 联通香港

title = UN_beijing 125.34.224.1

title = UN_beijing 125.34.224.1

host = 125.34.224.1

host = 125.34.224.1

 

 

++ UN_datong

++ UN_datong

menu = 联通运城

menu = 联通玉溪

title = UN_datong 118.72.100.1

title = UN_datong 118.72.100.1

host = 118.72.100.1

host = 118.72.100.1

 

 

++ UN_tangshan

++ UN_tangshan

menu = 联通衡阳

menu = 联通揭阳

title = UN_tangshan 60.2.61.88

title = UN_tangshan 60.2.61.88

host = 60.2.61.88

host = 60.2.61.88

 

 

++ UN_changzhi

++ UN_changzhi

menu = 联通池州

menu = 联通兴安盟

title = UN_changzhi 60.220.216.97

title = UN_changzhi 60.220.216.97

host = 60.220.216.97

host = 60.220.216.97

 

 

+ UN_HuiZong

+ UN_HuiZong

menu = China Unicom HuiZong

menu = China Unicom HuiZong

title = 联通汇总

title = 联通汇总

 

 

++ UN_HuiZong

++ UN_HuiZong

menu = 联通汇总

menu = 联通汇总

title = UN_HuiZong

title = UN_HuiZong

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

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

 

 

 

 

#+ Telecom

#+ Telecom

+ DX_huabei

+ DX_huabei

menu = China Telecom huabei

menu = China Telecom huabei

title = 电信华北地区

title = 邮电通讯华北地区

 

 

++ DX_beijingbb

++ DX_beijingbb

menu = 邮电通讯新加坡中心

menu = 邮电通讯新加坡大旨

title = DX_beijingbb 180.149.128.1

title = DX_beijingbb 180.149.128.1

host = 180.149.128.1

host = 180.149.128.1

 

 

++ DX_beijing

++ DX_beijing

menu = 邮电通讯香港

menu = 邮电通讯香岛

title = DX_beijing 106.120.186.61

title = DX_beijing 106.120.186.61

host = 106.120.186.61

host = 106.120.186.61

 

 

++ DX_baotou

++ DX_baotou

menu = 邮电通讯上饶

menu = 电信上饶

title = DX_baotou 1.180.80.5

title = DX_baotou 1.180.80.5

host = 1.180.80.5

host = 1.180.80.5

 

澳门金沙国际 , 

++ DX_changzhi

++ DX_changzhi

menu = 邮电通讯广安

menu = 邮电通讯达州

title = DX_changzhi 1.70.0.1

title = DX_changzhi 1.70.0.1

host = 1.70.0.1

host = 1.70.0.1

 

 

++ DX_tianjin

++ DX_tianjin

menu = 邮电通讯西雅图

menu = 电信达卡

title = DX_tianjin 202.97.79.202

title = DX_tianjin 202.97.79.202

host = 202.97.79.202

host = 202.97.79.202

 

 

++ DX_chifeng

++ DX_chifeng

menu = 邮电通讯丹东

menu = 邮电通讯马鞍山

title = DX_chifeng 123.178.241.2

title = DX_chifeng 123.178.241.2

host = 123.178.241.2

host = 123.178.241.2

 

 

++ DX_zhangjiakou

++ DX_zhangjiakou

menu = 邮电通讯晋中

menu = 邮电通讯齐齐哈尔

title = DX_zhangjiakou 219.148.106.1

title = DX_zhangjiakou 219.148.106.1

host = 219.148.106.1

host = 219.148.106.1

 

 

++ DX_hebeibb

++ DX_hebeibb

menu = 电信山东中央

menu = 邮电通讯福建大旨

title = DX_hebeibb 218.30.102.126

title = DX_hebeibb 218.30.102.126

host = 218.30.102.126

host = 218.30.102.126

 

 

++ DX_chengde

++ DX_chengde

menu = 邮电通讯开封

menu = 电信娄底

title = DX_chengde 27.129.62.66

title = DX_chengde 27.129.62.66

host = 27.129.62.66

host = 27.129.62.66

 

 

+ DX_dongbei

+ DX_dongbei

menu = China Telecom dongbei

menu = China Telecom dongbei

title = 电信东南地区

title = 电信西北地区

 

 

++ DX_baicheng

++ DX_baicheng

menu = 邮电通讯广元

menu = 邮电通信广安

title = DX_baicheng 123.172.195.1

title = DX_baicheng 123.172.195.1

host = 123.172.195.1

host = 123.172.195.1

 

 

++ DX_shenyang

++ DX_shenyang

menu = 邮电通讯哈博罗内

menu = 邮电通讯塞内加尔达喀尔

title = DX_shenyang 219.148.224.170

title = DX_shenyang 219.148.224.170

host = 219.148.224.170

host = 219.148.224.170

 

 

++ DX_haerbin

++ DX_haerbin

menu = 电信火奴鲁鲁

menu = 邮电通讯图卢兹

title = DX_haerbin 112.100.4.130

title = DX_haerbin 112.100.4.130

host = 112.100.4.130

host = 112.100.4.130

 

 

+ DX_huadong

+ DX_huadong

menu = China Telecom huadong

menu = China Telecom huadong

title = 电信华东地区

title = 邮电通讯华东地区

 

 

++ DX_hefei

++ DX_hefei

menu = 邮电通讯热那亚

menu = 邮电通讯安拉阿巴德

title = DX_hefei 115.238.250.95

title = DX_hefei 115.238.250.95

host = 115.238.250.95

host = 115.238.250.95

 

 

++ DX_hangzhou

++ DX_hangzhou

menu = 电信乔治敦

menu = 邮电通讯底特律

title = DX_hangzhou 183.136.237.178

title = DX_hangzhou 183.136.237.178

host = 183.136.237.178

host = 183.136.237.178

 

 

++ DX_nanchang

++ DX_nanchang

menu = 邮电通信辛辛那提

menu = 邮电通讯波德戈里察

title = DX_nanchang 220.175.137.1

title = DX_nanchang 220.175.137.1

host = 220.175.137.1

host = 220.175.137.1

 

 

++ DX_yantai

++ DX_yantai

menu = 邮电通讯台州

menu = 邮电通信大连

title = DX_yantai 222.173.223.97

title = DX_yantai 222.173.223.97

host = 222.173.223.97

host = 222.173.223.97

 

 

++ DX_zhangzhou

++ DX_zhangzhou

menu = 邮电通讯信阳

menu = 邮电通讯桂林

title = DX_zhangzhou 27.157.0.1

title = DX_zhangzhou 27.157.0.1

host = 27.157.0.1

host = 27.157.0.1

 

 

++ DX_shanghai

++ DX_shanghai

menu = 邮电通讯法国首都

menu = 邮电通讯东京

title = DX_shanghai 114.80.243.1

title = DX_shanghai 114.80.243.1

host = 114.80.243.1

host = 114.80.243.1

 

 

+ DX_zhongnan

+ DX_zhongnan

menu = China Telecom zhongnan

menu = China Telecom zhongnan

title = 邮电通讯中南地区

title = 邮电通讯中南地区

 

 

++ DX_zhengzhou

++ DX_zhengzhou

menu = 邮电通讯波尔多

menu = 邮电通信海法

title = DX_zhengzhou 1.192.0.1

title = DX_zhengzhou 1.192.0.1

host = 1.192.0.1

host = 1.192.0.1

 

 

++ DX_maoming

++ DX_maoming

menu = 邮电通信孝感

menu = 邮电通讯吉安

title = DX_maoming 121.10.173.117

title = DX_maoming 121.10.173.117

host = 121.10.173.117

host = 121.10.173.117

 

 

++ DX_changsha

++ DX_changsha

menu = 邮电通讯马普托

menu = 邮电通讯毕尔巴鄂

title = DX_changsha 124.232.137.133

title = DX_changsha 124.232.137.133

host = 124.232.137.133

host = 124.232.137.133

 

 

++ DX_dongguan

++ DX_dongguan

menu = 邮电通信广州

menu = 电信德雷斯顿

title = DX_dongguan 125.93.74.17

title = DX_dongguan 125.93.74.17

host = 125.93.74.17

host = 125.93.74.17

 

 

++ DX_nanning

++ DX_nanning

menu = 邮电通讯合肥

menu = 邮电通讯阿伯丁

title = DX_nanning 171.107.80.102

title = DX_nanning 171.107.80.102

host = 171.107.80.102

host = 171.107.80.102

 

 

++ DX_haikou

++ DX_haikou

menu = 邮电通讯邯郸

menu = 邮电通信西宁

title = DX_haikou 220.174.236.1

title = DX_haikou 220.174.236.1

host = 220.174.236.1

host = 220.174.236.1

 

 

+ DX_xinan

+ DX_xinan

menu = China Telecom xinan

menu = China Telecom xinan

title = 邮电通讯西北地区

title = 邮电通讯西北地区

 

 

++ DX_kunming

++ DX_kunming

menu = 邮电通讯布兰太尔

menu = 邮电通讯阿瓜斯卡连特斯

title = DX_kunming 116.53.255.34

title = DX_kunming 116.53.255.34

host = 116.53.255.34

host = 116.53.255.34

 

 

++ DX_chongqing

++ DX_chongqing

menu = 邮电通讯安卡拉

menu = 邮电通讯特古西加尔巴

title = DX_chongqing 119.84.87.231

title = DX_chongqing 119.84.87.231

host = 119.84.87.231

host = 119.84.87.231

 

 

++ DX_chengdu

++ DX_chengdu

menu = 邮电通讯圣Jose

menu = 邮电通讯圣多明各

title = DX_chengdu 125.64.99.162

title = DX_chengdu 125.64.99.162

host = 125.64.99.162

host = 125.64.99.162

 

 

++ DX_zhidi

++ DX_zhidi

menu = 邮电通讯芝地

menu = 邮电通讯芝地

title = DX_zhidi 202.98.246.129

title = DX_zhidi 202.98.246.129

host = 202.98.246.129

host = 202.98.246.129

 

 

++ DX_yuxi

++ DX_yuxi

menu = 邮电通讯河源

menu = 邮电通讯马唐山

title = DX_yuxi 222.220.206.1

title = DX_yuxi 222.220.206.1

host = 222.220.206.1

host = 222.220.206.1

 

 

+ DX_xibei

+ DX_xibei

menu = China Telecom xibei

menu = China Telecom xibei

title = 电信东南地区

title = 邮电通讯西南地区

 

 

++ DX_lanzhou

++ DX_lanzhou

menu = 邮电通讯哈尔滨

menu = 电信长春

title = DX_lanzhou 118.180.5.222

title = DX_lanzhou 118.180.5.222

host = 118.180.5.222

host = 118.180.5.222

 

 

++ DX_yinchuan

++ DX_yinchuan

menu = 邮电通讯大庆

menu = 邮电通讯咸阳

title = DX_yinchuan 124.224.255.46

title = DX_yinchuan 124.224.255.46

host = 124.224.255.46

host = 124.224.255.46

 

 

++ DX_kuerle

++ DX_kuerle

menu = 邮电通讯库尔勒

menu = 邮电通讯库尔勒

title = DX_kuerle 222.83.32.6

title = DX_kuerle 222.83.32.6

host = 222.83.32.6

host = 222.83.32.6

 

 

++ DX_wulumuqi

++ DX_wulumuqi

menu = 邮电通讯哈利法克斯

menu = 邮电通讯波尔多

title = DX_wulumuqi 61.128.111.1

title = DX_wulumuqi 61.128.111.1

host = 61.128.111.1

host = 61.128.111.1

 

 

++ DX_yanan

++ DX_yanan

menu = 邮电通信莱芜

menu = 邮电通讯辽阳

title = DX_yanan 36.43.0.1

title = DX_yanan 36.43.0.1

host = 36.43.0.1

host = 36.43.0.1

 

 

+ DX_HuiZong

+ DX_HuiZong

menu = China Telecom HuiZong

menu = China Telecom HuiZong

title = 邮电通讯汇总

title = 邮电通讯汇总

 

 

++ DX_HuiZong

++ DX_HuiZong

menu = 邮电通信汇总

menu = 邮电通讯汇总

title = DX_HuiZong

title = DX_HuiZong

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

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

 

 

EOF

EOF

chmod +x /etc/init.d/smokeping

chmod +x /etc/init.d/smokeping

chkconfig smokeping on

chkconfig smokeping on

chkconfig httpd on

chkconfig httpd on

/etc/init.d/httpd start

/etc/init.d/httpd start

/etc/init.d/smokeping start

/etc/init.d/smokeping start

if [ $? -eq 0 ];then

if [ $? -eq 0 ];then

echo -e “\\033[32m smokeping setup successfull
URR:”

echo -e “\\033[32m smokeping setup successfull
URR:”

fi

fi

相关文章