@ -48,3 +48,26 @@
script "/usr/bin/nc localhost 6443"
interval 5
}
vrrp_script chk_haproxy {
script "pidof haproxy"
interval 2
vrrp_instance VI_2 {
state MASTER
interface eth0
virtual_router_id 101
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 2222
virtual_ipaddress {
10.10.0.3
track_script {
chk_haproxy