Pulse - e-mail notification and external script?
Alessandro Vercelli
alever at libero.it
Fri Dec 11 12:18:41 UTC 2009
I could be wrong, but lvs doesn't implement failover notifications.
Using self-made scripts, you can check ipvsadm output; on the primary, you see (for example):
# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP lbwww:http rr
-> <real_node01>:http Route 1 0 0
-> <real_node01>:http Route 1 0 0
On the slave director, instead:
# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
You can build a monitoring script which checks the output and sends a message.
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,
>
>--
>László Béres Unix system engineer
>http://www.google.com/profiles/beres.laszlo
>
>_______________________________________________
>Piranha-list mailing list
>Piranha-list at redhat.com
>https://www.redhat.com/mailman/listinfo/piranha-list
>
More information about the Piranha-list
mailing list