RH AS4 安装LVS+Mon的问题

3台机器。
DS 192.168.1.250
VIP 192.168.1.254
RS1 192.168.1.251
RS1 192.168.1.252

测试OK,2.6.12的内核,补丁全打好了.
但是在安装mon的时候出了一点问题。
我都是用RPM方式安装的,以下为安装包。
fping-2.4-1.b2.2.el4.rf.i386.rpm
mon-0.99.2-1.2.el4.rf.i386.rpm
perl-Convert-BER-1.31.01-1.2.el4.rf.noarch.rpm
perl-Mon-0.11-2.2.el4.rf.noarch.rpm
perl-Net-Telnet-3.03-1.2.el4.rf.noarch.rpm
perl-Period-1.20-1.2.el4.rf.noarch.rpm
perl-Time-HiRes-1.55-3.i386.rpm

mon.cf
================================
### Extremely basic mon.cf file

### global options
cfbasedir = /etc/mon
pidfile = /var/run/mon.pid
statedir = /var/run/mon/state.d
logdir = /var/run/mon/log.d
dtlogfile = /var/run/mon/log.d/downtime.log
alertdir = /usr/lib/mon/alert.d
mondir = /usr/lib/mon/mon.d
maxprocs = 20
histlength = 100
randstart = 60s
authtype = userfile
userfile = /etc/mon/userfile

### group definitions (hostnames or IP addresses)
#hostgroup servers localhost
hostgroup RS1 192.168.1.251
hostgroup RS2 192.168.1.252

hostgroup ds 192.168.1.254

#watch servers
watch RS1
service webcache
interval 10s
monitor http.monitor -p 8080 -t 10
allow_empty_group
period wd {Sun-Sat}
alert lvs.alert -P tcp -V 192.168.1.254:8080 -R 192.168.1.251 -W 1 -F dr
alertevery 1h
alertafter 6
upalert lvs.alert -P tcp -V 192.168.1.254:8080 -R 192.168.1.251 -W 1 -F dr -u 1

watch RS2
service webcache
interval 10s
monitor http.monitor -p 8080 -t 10
period wd {Sun-Sat}
alert lvs.alert -P tcp -V 192.168.1.254:8080 -R 192.168.1.252 -W 1 -F dr
alertevery 1h
alertafter 6
upalert lvs.alert -P tcp -V 192.168.1.254:8080 -R 192.168.1.252 -W 1 -F dr -u 1

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

请大家帮忙解决一下问题,2天了.焦头烂额!~~~感谢各位拉!~~~

Forums:

我用watch RS1却不行
h: RS1: command not found
博士来救命啊!~

请提供MON启动时候出错的详细日志.
另外,你的mon.cf文件中,hostgroup配置行之间应该空一行.我印象中如此.
希望对你有帮助.

空行了后watch RS1还是不行
h: RS1: command not found

奇怪的是mon找不到日志,但是启动都是OK
Shutting down System Monitoring daemon (mon): [ OK ]
Starting System Monitoring daemon (mon): [ OK ]

另外lvs的alert脚本就是lvs.alert放在那里的阿?我一直都丢在/etc/mon里面!~

在我的系统中搜索不到http.monitor这个文件,还有fping.monitor等也没有。这些是原因么?

再请问
upalert lvs.alert -P tcp -V 192.168.1.254:8080 -R 192.168.1.252 -W 1 -F dr -u 1
-u 1 是什么意思?