Hi Gernot, I see in your config that the hostgroups have a different IP than the actual lvs.alert. Is this a typo? I also believe that servers must be in the same subnet if you want to use Direct Routing with LVS (check lvs website to be sure). You can use LVS NAT instead.
Regards, Sebastiaan Veldhuisen On Fri, 2005-06-03 at 09:19 +0200, Grames Gernot wrote: > Hello, > > i have some problem with the http.monitor. > > i have successfully installed mon (mon-0.99.2.tar.gz whith > perl-5.8.6.tar.gz and Convert-BER-1.3101.tar.gz, Mon-0.11.tar.gz, > Period-1.20.tar.gz, Time-HiRes-1.68.tar.gz, > schedule-oncall-0.8.3.tar.gz, schedule-tools-0.8.2.tar.gz) and i set > the configuration file (mon.cf) to monitor a server for the http > access. > > mon.cf > > # > # The 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 = 30s > > # > # group definitions (hostnames or IP addresses) > # > hostgroup APPS_RS1 192.168.0.20 > > hostgroup APPS_RS2 192.168.0.22 > > # > # Web server 1 > # > watch APPS_RS1 > service http > interval 10s > monitor http.monitor > period wd {Sun-Sat} > alert test.alert > upalert test.alert > #alert mail.alert wensong > #upalert mail.alert wensong > #alert lvs.alert -P tcp -V 10.0.0.3:80 -R 192.168.0.1 -W 5 > -F dr > #upalert lvs.alert -P tcp -V 10.0.0.3:80 -R 192.168.0.1 -W > 5 -F dr > > # > # Web server 2 > # > watch APPS_RS2 > service http > interval 10s > monitor http.monitor > period wd {Sun-Sat} > alert test.alert > upalert test.alert > #alert mail.alert wensong > #upalert mail.alert wensong > #alert lvs.alert -P tcp -V 10.0.0.3:80 -R 192.168.0.2 -W 5 > -F dr > #upalert lvs.alert -P tcp -V 10.0.0.3:80 -R 192.168.0.2 -W > 5 -F dr > > > my Problem is now that i get always the message in the test.alert.log > > Fri Jun 3 08:58:54 CEST 2005 -s http -g APPS_RS1 -h 192.168.0.20 -t > 1117781933 > Fri Jun 3 08:58:54 CEST 2005 -s http -g APPS_RS2 -h 192.168.0.22 -t > 1117781934 > Fri Jun 3 08:59:03 CEST 2005 -s http -g APPS_RS1 -h 192.168.0.20 -t > 1117781943 > Fri Jun 3 08:59:03 CEST 2005 -s http -g APPS_RS2 -h 192.168.0.22 -t > 1117781943 > Fri Jun 3 08:59:14 CEST 2005 -s http -g APPS_RS1 -h 192.168.0.20 -t > 1117781954 > Fri Jun 3 08:59:14 CEST 2005 -s http -g APPS_RS2 -h 192.168.0.22 -t > 1117781954 > Fri Jun 3 08:59:24 CEST 2005 -s http -g APPS_RS1 -h 192.168.0.20 -t > 1117781964 > Fri Jun 3 08:59:24 CEST 2005 -s http -g APPS_RS2 -h 192.168.0.22 -t > 1117781964 > Fri Jun 3 08:59:35 CEST 2005 -s http -g APPS_RS1 -h 192.168.0.20 -t > 1117781975 > Fri Jun 3 08:59:35 CEST 2005 -s http -g APPS_RS2 -h 192.168.0.22 -t > 1117781975 > > that the servers are down, but they are running! > > Then i tried to call the monitor from the bash with ./http.monitor > 192.168.0.22 > > 192.168.0.22 > HOST 192.168.0.22: connect: Connection refused > > what is my error? Or is something missing?? > > my auth.cf file: > > # > # authentication file > # > # entries look like this: > # command: {user|all}[,user...] > # > # THE DEFAULT IT TO DENY ACCESS TO ALL IF THIS FILE > # DOES NOT EXIST, OR IF A COMMAND IS NOT DEFINED HERE > # > > # > # command section > # > command section > > ack: root#AUTH_ANY > checkauth: all > clear: root#AUTH_ANY > disable: root#AUTH_ANY > dump: root#AUTH_ANY > enable: root#AUTH_ANY > get: root#AUTH_ANY > list: all > loadstate: root#AUTH_ANY > protid: all > quit: all > reload: root#AUTH_ANY > reset: root#AUTH_ANY > savestate: root#AUTH_ANY > servertime: all > set: root#AUTH_ANY > start: root#AUTH_ANY > stop: root#AUTH_ANY > term: root#AUTH_ANY > test: root#AUTH_ANY > version: all > > # > # trap section > # > # if no source hosts or users are defined, then do not > # accept traps > # > trap section > > #source_host user password > # > # allow from user "mon" from any host > # > # * mon monpassword > # > # allow from host 127.0.0.1 without requiring > # a valid username and password > # > # 127.0.0.1 * * > # > > > Thanks for your help! > > Gernot > > > _______________________________________________ > mon mailing list > mon@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/mon _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon