! Configuration File for keepalived
global_defs { notification_email { mail@server.com } notification_email_from mail@server.com smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id AGENT }
vrrp_script chk_haproxy { script "nc -w 0 192.168.80.194 8309" interval 3 weight -20 fall 3 rise 2 }
vrrp_instance VI_196 { state MASTER interface eth0 virtual_router_id 196 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 123456 } virtual_ipaddress { 192.168.80.196 }
track_script { chk_haproxy } }
|