有关mon的问题。求达人解答...跪拜!~~~

现在ipvs能正确分流,但是配置mon的时候还是有问题。

以下是我的mon.cf配置
### Extremely basic mon.cf file

### global options
cfbasedir = /etc/mon
alertdir = /usr/lib/mon/alert.d
mondir = /usr/lib/mon/mon.d
maxprocs = 20
histlength = 100
randstart = 3s

### group definitions (hostnames or IP addresses)
hostgroup RS1 192.168.1.251

hostgroup RS2 192.168.1.252

#watch servers
watch RS1
service http
interval 10s
monitor http.monitor
period wd {Sun-Sat}
alert lvs.alert -P tcp -V 192.168.1.254:80 -R 192.168.1.251 -W 1 -F tun
upalert lvs.alert -P tcp -V 192.168.1.254:80 -R 192.168.1.251 -W 1 -F tun -u

watch RS2
service http
interval 10s
monitor http.monitor
period wd {Sun-Sat}
alert lvs.alert -P tcp -V 192.168.1.254:80 -R 192.168.1.252 -W 1 -F tun
upalert lvs.alert -P tcp -V 192.168.1.254:80 -R 192.168.1.252 -W 1 -F tun -u

### See /usr/doc for the original example...

lvs.alert已经写好到 /usr/lib/mon/alert.d/lvs.alert
http.monitor文件在 /usr/lib/mon/mon.d/下面也有
启动也没有问题
/etc/init.d/mon restart
Shutting down System Monitoring daemon (mon): [ OK ]
Starting System Monitoring daemon (mon): [ OK ]

但是就是关掉一个251或者252后就不删除ipvs的记录,很是郁闷,求达人解答一下!~

Forums:

找到问题了。
原来是http.monitor没有给权限
chmod 755 /use/lib/mon.d/http.monitor
这样就可以了.终于好了.

randomness