Re:Pulse - e-mail notification and external script?
"Alessandro Vercelli" <[email protected]> Fri, 11 Dec 2009 13:18:41 +0100
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
I could be wrong, but lvs doesn't implement failover notifications. Using self-made scripts, you can check ipvsadm output; on the primary, yo= u see (for example): # ipvsadm IP Virtual Server version 1.2.1 (size=3D4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP lbwww:http rr -> <real_node01>:http Route 1 0 0 = =20 -> <real_node01>:http Route 1 0 0 = =20 On the slave director, instead: # ipvsadm IP Virtual Server version 1.2.1 (size=3D4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn You can build a monitoring script which checks the output and sends a mes= sage. Good work, Alessandro >Hi, > >I have the beautiful duty to set up a 2-node loadbalancer. >Unfortunately the client has some requests I can't implement for the >first sight: > >- having e-mail notification about master/backup failover >- starting external scripts when failover happens > >Is there an easy way or unofficial, unsupported solution for the >requirements above? > >Best regards, > >--=20 >L=E1szl=F3 B=E9res Unix system engineer >http://www.google.com/profiles/beres.laszlo > >_______________________________________________ >Piranha-list mailing list >[email protected] >https://www.redhat.com/mailman/listinfo/piranha-list >