++ TEST
menu = TEST
title = TEST
################web server############################
+++ TEST-web-bbs
menu = TEST-web-bbs
title = TEST网站 10.0.100.10
host = 61.160.248.10
+++ TEST-web-main
menu = TEST网站主WEB服务器
title = TEST网站主WEB服务器 10.0.100.21
host = 10.0.100.21
+++ TEST-web-admin
menu = TEST网站后台管理WEB服务器
title = TEST网站后台管理WEB服务器 10.0.100.6
host = 10.0.100.6
################double line server############################
+++ TEST-web-static
menu = TEST双线官网和网站静态文件WEB服务器
title = TEST双线官网和网站静态文件WEB服务器
#host = /cy2009/TEST/TEST-web-static-union \
# /TEST/TEST-web-static-telecom
++++ TEST-web-static-telecom
menu = TEST电信官网和网站静态文件WEB服务器
title = TEST电信官网和网站静态文件WEB服务器 10.0.100.101
host = 10.0.100.101
++++ TEST-web-static-union
menu = TEST网通官网和网站静态文件WEB服务器
title = TEST网通官网和网站静态文件WEB服务器 10.0.100.159
host = 10.0.100.159
################database############################
+++ TEST-db-master
menu = TEST网站DB主服务器
title = TEST网站DB主服务器 10.0.100.7
host = 10.0.100.7
+++ TEST-db-slave
menu = TEST网站DB从服务器
title = TEST网站DB从服务器 10.0.100.11
host = 10.0.100.11
################other############################
+++ TEST-memcached
menu = TEST-memcached服务器
title = TEST memcached和SVN服务器 10.0.100.22
host =10.0.100.22
*** Alerts ***
to = zouyunhao@aspire-tech.com,minliang@aspire-tech.com,
from = smokealert@192.168.2.14
+someloss
type = loss
pattern = >0%,*30*,>0%,*30*,>0% # in percent
comment = loss 1 packages in 30 continuous 3 times.
+manyloss type = loss
pattern = >15%,*30*,>15%,*30*,>15% # in percent
comment = loss 5 packages in 30 continuous 3 times.
+rttbad type = rtt
pattern = ==S,>50,>50 # in milliseconds
comment = For more than two consecutive 50-millisecond delay.
从图上可以看到,slave主机会自己去检查监测点的情况(loss and rtt),并将数值提交给master主机(通过smokeping.cgi)。值得注意的是,slave并不需要config文件,每次slave提交完数据以后,会询问master它自己的配置文件是否有修改,如果有修改的话slave会进行更新。
Master配置: