在/etc/httpd/conf/httpd.con末尾添加以下加行:
Alias /cache "/usr/local/smokeping/cache/"
Alias /cropper "/usr/local/smokeping/htdocs/cropper/"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"
<Directory "/usr/local/smokeping">
AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
</Directory>
smokeping配置文件如下所示:
cat /usr/local/smokeping/etc/config
*** General ***
owner = Peter Random
contact = some@address.nowhere
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 = /usr/local/smokeping/cache
imgurl = cache
datadir = /usr/local/smokeping/data
piddir = /usr/local/smokeping/var
cgiurl = http://10.104.96.155/smokeping.cgi
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
menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
Here you will learn all about the latency of our network.
+ Test
menu= Targets
#parents = owner:/Test/James location:/
++ James
menu = James
title =James
alerts = someloss
slaves = boomer slave2
host = james.address
++ MultiHost
menu = Multihost
title = James and James as seen from Boomer
host = /Test/James /Test/James~boomer
++ Localhost
menu = Localhost
title = Localhost
alerts = someloss
#slaves = boomer slave2
host = 10.104.96.155
+ Other
menu = 网络及节点监控
title = 监控统计
++ dianxin
menu = 电信网络监控
title = 电信网络监控列表
host = /Other/dianxin/dianxin-bj /Other/dianxin/dianxin-sh /Other/dianxin/dianxin-gz /Other/dianxin/dianxin-sz /Other/dianxin/dianxin-tj /Other/dianxin/dianxin-sy /Other/dianxin/dianxin-xa /Other/dianxin/dianxin-jn /Other/dianxin/dianxin-cd /Other/dianxin/dianxin-hf /Other/dianxin/dianxin-wh /Other/dianxin/dianxin-zz /Other/dianxin/dianxin-cs /Other/dianxin/dianxin-nj /Other/dianxin/dianxin-hz /Other/dianxin/dianxin-xm /Other/dianxin/dianxin-nn /Other/dianxin/dianxin-ty /Other/dianxin/dianxin-cc /Other/dianxin/dianxin-lz /Other/dianxin/dianxin-nn /Other/dianxin/dianxin-xn /Other/dianxin/dianxin-hk /Other/dianxin/dianxin-fz /Other/dianxin/dianxin-gy /Other/dianxin/dianxin-km /Other/dianxin/dianxin-xj /Other/dianxin/dianxin-xz /Other/dianxin/dianxin-heb /Other/dianxin/dianxin-hhht
+++ dianxin-bj
menu = 北京电信
title = 北京电信
alerts = someloss
host = 106.37.232.114
+++ dianxin-sh
menu = 上海电信
title = 上海电信
alerts = someloss
host = 202.96.209.133
+++ dianxin-gz
menu = 广州电信
title = 广州电信
alerts = someloss
host = 219.137.229.134
+++ dianxin-sz
menu = 深圳电信
title = 深圳电信
alerts = someloss
host = 202.96.154.15
+++ dianxin-tj
menu = 天津电信
title = 天津电信
alerts = someloss
host = 219.150.32.132
+++ dianxin-sy
menu = 沈阳电信
title = 沈阳电信
alerts = someloss
host = 219.148.204.66
+++ dianxin-xa
menu = 西安电信
title = 西安电信
alerts = someloss
host = 117.35.68.4
+++ dianxin-jn
menu = 济南电信
title = 济南电信
alerts = someloss
host = 219.146.0.253
+++ dianxin-cd
menu = 成都电信
title = 成都电信
alerts = someloss
host = 61.139.2.69
+++ dianxin-hf
menu = 合肥电信
title = 合肥电信
alerts = someloss
host = 220.178.75.134
+++ dianxin-wh
menu = 武汉电信
title = 武汉电信
alerts = someloss
host = 221.232.129.35
+++ dianxin-zz
menu = 郑州电信
title = 郑州电信
alerts = someloss
host = 123.52.19.15
+++ dianxin-cs
menu = 长沙电信
title = 长沙电信
alerts = someloss
host = 202.103.96.253
+++ dianxin-nj
menu = 南京电信
title = 南京电信
alerts = someloss
host = 218.2.135.1
+++ dianxin-hz
menu = 杭州电信
title = 杭州电信
alerts = someloss
host = 202.96.96.68
+++ dianxin-xm
menu = 厦门电信
title = 厦门电信
alerts = someloss
host = 202.101.103.54
+++ dianxin-nn
menu = 南宁电信
title = 南宁电信
alerts = someloss
host = 202.103.225.254
+++ dianxin-ty
menu = 太原电信
title = 太原电信
alerts = someloss
host = 59.49.77.1
+++ dianxin-cc
menu = 长春电信
title = 长春电信
alerts = someloss
host = 219.149.194.55
+++ dianxin-lz
menu = 兰州电信
title = 兰州电信
alerts = someloss
host = 202.100.64.68
+++ dianxin-nc
menu = 南昌电信
title = 南昌电信
alerts = someloss
host = 202.101.224.68
+++ dianxin-xn
menu = 西宁电信
title = 西宁电信
alerts = someloss
host = 202.100.138.68
+++ dianxin-hk
menu = 海口电信
title = 海口电信
alerts = someloss
host = 202.100.192.1
+++ dianxin-fz
menu = 福州电信
title = 福州电信
alerts = someloss
host = 218.85.157.99
+++ dianxin-gy
menu = 贵阳电信
title = 贵阳电信
alerts = someloss
host = 202.98.198.167
+++ dianxin-km
menu = 昆明电信
title = 昆明电信
alerts = someloss
host = 222.172.200.68
+++ dianxin-xj
menu = 新疆电信
title = 新疆电信
alerts = someloss
host = 61.128.114.133
+++ dianxin-xz
menu = 西藏电信
title = 西藏电信
alerts = someloss
host = 202.98.224.2
+++ dianxin-heb
menu = 哈尔滨电信
title = 哈尔滨电信
alerts = someloss
host = 219.150.32.132
+++ dianxin-hhht
menu = 呼和浩特电信
title = 呼和浩特电信
alerts = someloss
host = 121.56.12.12