global_defs { enable_script_security script_user root } vrrp_script chk_ha { script "/usr/local/sbin/keepalived-check-ha.sh" interval 5 weight -30 fall 3 rise 2 user root } vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 51 priority 100 advert_int 2 preempt_delay 30 unicast_src_ip 192.168.128.81 unicast_peer { 192.168.128.80 } authentication { auth_type PASS auth_pass @Dedelove1 } virtual_ipaddress { 192.168.128.85 } track_script { chk_ha } notify_master "/usr/local/sbin/keepalived-notify-master.sh" notify_backup "/usr/local/sbin/keepalived-notify-backup.sh" notify_fault "/usr/local/sbin/keepalived-notify-fault.sh" }