I wrote in the mon.cf file these lines:
###################################
hostgroup nodo1 10.82.87.216
hostgroup nodo2 10.82.87.218
watch nodo1
service fping
interval 30s
monitor fping.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert root
upalert mail.alert root
alert nodo1down.alert
upalert nodo1up.alert
service http
interval 30s
monitor http.monitor
allow_empty_group
period wd {Sun-Sat}
alert nodo1-80-down.alert
upalert nodo1-80-up.alert
watch nodo2
service fping
interval 30s
monitor fping.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert root
upalert mail.alert root
alert nodo2down.alert
upalert nodo2up.alert
service http
interval 30s
monitor http.monitor
allow_empty_group
period wd {Sun-Sat}
alert nodo2-80-down.alert
upalert nodo2-80-up.alert
###############################################
where nodo1-80-down.alert and the others are very simple handmade scripts
which add or remove lines in the ipvs table. If I try the script it works
perfectly, but if I stop the web server on "nodo1" and then try to see the
ipvs table (with ipvsadm -L command) I can still see the line for "nodo1".
It looks like mon doesn't work, even if I launched "/etc/init.d/mon start".
Please help me.
Regards
andrea
_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon