# Order allow,deny
Allow from 192.168.x.0/24 允许访问的地址
Deny from all
Allow from 192.168.x.0/24
Deny from all
smokeping 配置:/etc/smokeping/config
配置如下
*** General ***
owner = Super User
contact = root@localhost
mailhost = my.mail.host
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 = /var/lib/smokeping/images
imgurl = /smokeping/images
datadir = /var/lib/smokeping/rrd
piddir = /var/run/smokeping
cgiurl = http://localhost/smokeping/sm.cgi
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail
# 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 = root@localhost
from = root@localhost
+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
*** Database ***
step = 200
pings = 15
# 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
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of Insert Company Name Here. \
Here you will learn all about the latency of our network.
+ Ping
menu = TEST
title = test
++ baidu
menu = baidu
title = baidu
host = 115.239.210.27
++ sohu
menu = sohu
title = sohu
host = 42.81.12.126
+ ALL_JYW
menu = 全国各地教育网地址
title = ALL_JYW_IP
++ TJYYDX
menu = 同济医药大学
title = 同济医药大学
host = 202.114.128.1
++ ZNCJDX
menu = 中南财经大学
title = 中南财经大学
host = 202.114.224.1
++ WHKJDX
menu = 武汉科技大学
title = 武汉科技大学
host = 202.114.240.1
++ DZKJDX
menu = 电子科技大学
title = 电子科技大学
host = 202.115.000.1
++ SCGYXY
menu = 四川工业学院
title = 四川工业学院
host = 202.115.144.1
++ XLGXY
menu = 西南工学院
title = 西南工学院
host = 202.115.160.1
++ SKLYDX
menu = 四川农业大学
title = 四川农业大学
host = 202.115.176.1
++ GD
menu = 广东
title = 广东
host = 202.116.224.1
++ GGYKDX
menu = 中国医药大学
title = 中国医药大学
host = 202.118.040.1
++ HRBSFDX
menu = 哈尔滨师范大学
title = 哈尔滨师范大学
host = 202.118.128.1
++ HRBGCDX
menu = 哈尔滨工程大学
title = 哈尔滨工程大学
host = 202.118.176.1
++ LJXZSFXX
menu = 南京晓庄师范学校
title = 南京晓庄师范学校
host = 202.119.133.1
++ LJDLGDZKXJ
menu = 南京电力高等专科学校
title = 南京电力高等专科学校
host = 202.119.160.1
++ JSSJYWYH
menu = 江苏省教育委员会
title = 江苏省教育委员会
host = 202.119.172.1
++ LJLKDX
menu = 南京林业大学
title = 南京林业大学
host = 202.119.208.1
++ SHJTDX
menu = 上海交通大学
title = 上海交通大学
host = 202.120.000.1
++ SHYKDX
menu = 上海医药大学
title = 上海医药大学
host = 202.120.064.1
安装cgilib wget http://down1.chinaunix.net/distfiles/cgilib-0.5.tar.gz
tar zxvf cgilib-0.5.tar.gz
cd cgilib-0.5
make
cp libcgi.a /usr/local/lib
cp cgi.h /usr/include
安装echoping #下载地址:http://down.运维网.com/data/612292
tar zxvf echoping-6.0.0.tar.gz
cd echoping-6.0.0
./configure
make
make test
make install
# 解决 configure:error: Get the GNU libidn library (http://www.josefsson.org/libidn/) in orderto use Unicode - multi-script - domain names or use --without-libidn to disableit # 解决方法:安装libidn-devel # 下载地址http://mirror.centos.org/centos/7/os/x86_64/Packages/libidn-devel-1.28-4.el7.x86_64.rpm