--On Thursday, March 10, 2005 1:27 AM +0100 Sebastiaan Veldhuisen <[EMAIL PROTECTED]> wrote:

I already got  the scripts from Christopher de Marco (ipvs.alert and
ipvs.monitor) whih allows you to monitor if a virtual service has real
servers defined an take action, but i don't understand how to incorprate
them into mon.cf.


BIG CAVEAT: I've never used LVS myself, so I'm taking some guesses here... Test this in a lab environment before deploying to a real world environment...

In your current model I think you want to add a third watch, which might look something like this:
watch webmail-lvs
service http
description virtual server for umail unsecure
interval 30s
monitor ipvs.monitor -P tcp -V x.x.x.18:80 ;;
period wd {Sun-Sat}
alert ipvs.alert -D -P tcp -V x.x.x.18:80
alertafter 2



Thats close to right... Note that there is no upalert defined here, because it would be nonsensical. i.e. trying to bring up the virtual server when you just tested and determined that its up and running would be silly. The upalerts on the per-host tests will take care of creating the virtual server, if i'm reading ipvs.alert correctly...


The problem is that i can't put bot real http servers
in the same host group, because i have to do different alert actions
(read: delete the specific server from the lvs). I saw that Christopher
had this same problem in an older thread
(http://www.mail-archive.com/mon@linux.kernel.org/msg01427.html). I've
contacted him, but he doens't respond to my mails. Anybody has a clue on
how to implement this?

Lets be precise here... you can't put both real servers in the same group without rewriting the alert script. I think doing so would probably make some sense. In particular you would want a modified version of ipvs.alert which took a port number as one option, and a read the list of real servers to enable/disable from the summary line. Then you could group the hosts together in the way that makes the monitoring solution much more elegant, especially when you start moving beyond two servers in the pool.



-David Nolan Network Software Designer Computing Services Carnegie Mellon University

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to